<?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/15166" />

	<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>2007-12-27T15:51:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-12-27T15:51:18-04:00</updated>

		<published>2007-12-27T15:51:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79568#p79568</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79568#p79568"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79568#p79568"><![CDATA[
Yeah. Thats a good tip, but i dont relay on it as it only last for as long as wait-split is set for. which for me isn't verry long <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Dec 27, 2007 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-12-27T14:38:31-04:00</updated>

		<published>2007-12-27T14:38:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79564#p79564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79564#p79564"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79564#p79564"><![CDATA[
Thanks metroid, that was really easy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">.. I never thought of doing that.. thanks alot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Thu Dec 27, 2007 2:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-12-27T13:07:44-04:00</updated>

		<published>2007-12-27T13:07:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79562#p79562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79562#p79562"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79562#p79562"><![CDATA[
You do know that eggdrops already keep a host cached for every chanuser right?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><div class="codebox"><p>Code: </p><pre><code>bind pub - !matchip pub:matchproc pub:match {nick host handle channel text} {    if {$text == ""} {        return;    }    foreach user [chanlist $channel] {        if {[string match -nocase [getchanhost $user] $text]} {            putserv "PRIVMSG $channel :$user matches $text."        }    }        }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Dec 27, 2007 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-12-26T02:12:11-04:00</updated>

		<published>2007-12-26T02:12:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79541#p79541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79541#p79541"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79541#p79541"><![CDATA[
no worries. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> glad it worked out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Wed Dec 26, 2007 2:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-12-25T23:23:35-04:00</updated>

		<published>2007-12-25T23:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79537#p79537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79537#p79537"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79537#p79537"><![CDATA[
works fine like this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><div class="codebox"><p>Code: </p><pre><code> }; return </code></pre></div>So far works fine, dont know about the future <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Thanks alot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Tue Dec 25, 2007 11:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-12-26T02:11:44-04:00</updated>

		<published>2007-12-25T14:44:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79534#p79534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79534#p79534"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79534#p79534"><![CDATA[
Thats gd <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> wasn't expecting it to work. Since i didn't test it. Thanks for the information on ircd type. use to unrealircd. Try changing <div class="codebox"><p>Code: </p><pre><code>     }; set match(ip) ""; return </code></pre></div> to <div class="codebox"><p>Code: </p><pre><code>     }; return </code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Also, it could be worth removing the return, since that way it would possible just return as many matches as it gets from the /who #channel output. <div class="codebox"><p>Code: </p><pre><code>     }; </code></pre></div> Like the foreach loop would. using return would brake the loop from the /who #channel<br><br>edit; fixed typeo. should of been loop not look.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Dec 25, 2007 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-12-25T14:23:21-04:00</updated>

		<published>2007-12-25T14:23:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79533#p79533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79533#p79533"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79533#p79533"><![CDATA[
Thanks for the reply, it's for Undernet version u2.10.12.12.<br><br>Ok the tcl works fine for the first entry but then it halts with no responce, prolly it's not killing set match(ip) properly.<br><div class="codebox"><p>Code: </p><pre><code>[23:21] &lt;iamdeath&gt; !matchip *!*@iamdeath.users.undernet.org[23:21] &lt;Cricket`-&gt; Found iamdeath matching your request.[23:21] &lt;iamdeath&gt; !matchip *!*@cricket.users.undernet.org[23:22] &lt;iamdeath&gt; !matchip *!*@cricketbot.users.undernet.org</code></pre></div><br>Thanks<br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Tue Dec 25, 2007 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-12-25T12:54:18-04:00</updated>

		<published>2007-12-25T12:54:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79532#p79532</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79532#p79532"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79532#p79532"><![CDATA[
could try something like <div class="codebox"><p>Code: </p><pre><code>set match(ip) ""proc pub:match {nick host handle channel text} {global match if {$text == ""} {return 0}  set match(ip) "$text"   puthelp "WHO $channel"    return 1}proc raw:match {from key text} {global match set chan [lindex $text 1]  set nick [lindex $text 5]   set host "*!*@[lindex $text 3]"    set geos [lrange [lindex [split $text ":"] 1] 1 end]     if {[strlwr $match(ip)] == [strlwr $host]} {      puthelp "PRIVMSG $chan :Found $nick matching your request."     }; set match(ip) ""; return}bind pub - !matchip pub:matchbind raw - 352 raw:matchputlog "loaded who.tcl"return</code></pre></div> btw, what ircd is this please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Dec 25, 2007 12:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-12-25T07:06:04-04:00</updated>

		<published>2007-12-25T07:06:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79531#p79531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79531#p79531"/>
		<title type="html"><![CDATA[WHO help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79531#p79531"><![CDATA[
Hi, I was trying to assist a user here, while working on his request I am stuck at the middle, WHO mechanism is taken from caesars script it helped me to find out how it works. but for somereasons it's not working fine ;/<br><div class="codebox"><p>Code: </p><pre><code># binds #bind pub - "!matchip" proc:matchbind raw - 352 who:checkproc proc:match {nick uhost handle channel text} {global matchipset matchip $textputserv "WHO $channel"}# who check #proc who:check {from key arg} {global matchip  set chan [lindex $arg 1]  set nick [lindex $arg 5]  set uhost *!*@[lindex [split $arg] 3]  set realname [lrange [lindex [split $arg ":"] 1] 1 end]  if {[strlwr $matchip] == [strlwr $uhost]} {  puthelp "PRIVMSG $chan :Found $nick matching your request."  }unset matchip}</code></pre></div>The error I am getting is:<br><div class="codebox"><p>Code: </p><pre><code>[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:02] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:03] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:03] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:03] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:03] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:03] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable[16:03] &lt;Cricket`-&gt; [14:38] Tcl error [who:check]: can't read "matchip": no such variable</code></pre></div>Thanks<br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Tue Dec 25, 2007 7:06 am</p><hr />
]]></content>
	</entry>
	</feed>
