<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/18785" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2012-01-09T13:08:08-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/18785</id>

		<entry>
		<author><name><![CDATA[skywalker]]></name></author>
		<updated>2012-01-09T13:08:08-04:00</updated>

		<published>2012-01-09T13:08:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98485#p98485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98485#p98485"/>
		<title type="html"><![CDATA[need help with split the realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98485#p98485"><![CDATA[
thx mate<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11876">skywalker</a> — Mon Jan 09, 2012 1:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2012-01-09T08:53:42-04:00</updated>

		<published>2012-01-09T08:53:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98481#p98481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98481#p98481"/>
		<title type="html"><![CDATA[need help with split the realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98481#p98481"><![CDATA[
Just split your realname on the "/" character, you'll have an usable list.<div class="codebox"><p>Code: </p><pre><code>proc realname {from key arg} {global botnick nick   set argst [clone_stripcodes [string trim $arg]]   putlog "arg is $arg"   set cchan $::jchan   set realname [split [string range $argst [expr [string first : $argst] +1] end] "/"]   set age [lindex $realname 0]   set sex [lindex $realname 1]   set location [join [lrange $realname 2 end]]   putlog "$nick is a $age years old $sex from $location"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jan 09, 2012 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[skywalker]]></name></author>
		<updated>2012-01-08T16:03:04-04:00</updated>

		<published>2012-01-08T16:03:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98479#p98479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98479#p98479"/>
		<title type="html"><![CDATA[need help with split the realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98479#p98479"><![CDATA[
i use my realname field to fill in the a/s/l<br>now i want to strip that into 3 seperate things.<br>and be displayed like belowe<br>i need help with the <span style="color:red">what to write here</span> sections in the script<br><div class="codebox"><p>Code: </p><pre><code>bind join - *  whoisjoinbind raw * 311 realname# nicks to be exempted from aslset aslexclude_nicks ""proc whoisjoin {nick uhost hand chan} {   global aslexclude_nicks botnick   if {$nick==$botnick} { return }   if {[string match "*$nick;*" $aslexclude_nicks]} { return }   set ::jchan $chan     putquick "whois $nick"}proc realname {from key arg} {global botnick nick   set argst [clone_stripcodes [string trim $arg]]   putlog "arg is $arg"   set cchan $::jchan   set realname [string range $argst [expr [string first : $argst] +1] end]   set age WHAT TO WRITE HERE   set sex WHAT TO WRITE HERE   set location WHAT TO WRITE HERE   putlog "$nick is a $age years old $sex from $location"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11876">skywalker</a> — Sun Jan 08, 2012 4:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
