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

	<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>2002-10-08T04:31:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-08T04:31:46-04:00</updated>

		<published>2002-10-08T04:31:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11793#p11793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11793#p11793"/>
		<title type="html"><![CDATA[Ctcp scan tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11793#p11793"><![CDATA[
Yup, leave the &amp;&amp;, honest.<br><br>I apparently need to read the posts properly before replying to them, well, make that read them at least a little bit!! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 08, 2002 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-10-07T16:46:14-04:00</updated>

		<published>2002-10-07T16:46:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11790#p11790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11790#p11790"/>
		<title type="html"><![CDATA[Ctcp scan tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11790#p11790"><![CDATA[
Gothic leave "&amp;&amp;" <br><br>cheers <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Mon Oct 07, 2002 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-07T05:04:27-04:00</updated>

		<published>2002-10-07T05:04:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11763#p11763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11763#p11763"/>
		<title type="html"><![CDATA[Ctcp scan tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11763#p11763"><![CDATA[
In the above script, it states "work in listed channels, or all if blank".<br><br>The code, check to see if the channel is in the list, and that the list isn't empty.<br><br>As such, only working if a channel is listed.<br><br>To fix this, simply changing the &amp;&amp; in the if, doing the check, to || will fix this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 07, 2002 5:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-10-06T18:27:14-04:00</updated>

		<published>2002-10-06T18:27:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11762#p11762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11762#p11762"/>
		<title type="html"><![CDATA[Ctcp scan tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11762#p11762"><![CDATA[
# Chans where the script is supposed to work. "" means all chans.<br>set chanz "#blah #arg" <br><br>change procs a bit<br><br>proc send:finger {nick uh hand chan} { <br>if {[matchattr $hand f|f] || [isop $nick $chan]} { return 0 } <br>if {($chanz != "") &amp;&amp; ([lsearch -exact [split [string tolower $chanz]] [string tolower $dest]] == -1)} {return 0} <br>putquick "PRIVMSG $nick :\001FINGER\001" <br>} <br># end<br><br>add chanz to global and enjoy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sun Oct 06, 2002 6:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-10-06T17:27:08-04:00</updated>

		<published>2002-10-06T17:27:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11760#p11760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11760#p11760"/>
		<title type="html"><![CDATA[Ctcp scan tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11760#p11760"><![CDATA[
Its working now, however how would I add it only do a few channels out of all the ones its opped in?<br><br>Say Its in #blah #heh #teehe #hmm #argh<br><br>and I only want it to finger users in #blah and #argh?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Oct 06, 2002 5:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-10-06T05:40:13-04:00</updated>

		<published>2002-10-06T05:40:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11743#p11743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11743#p11743"/>
		<title type="html"><![CDATA[Ctcp scan tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11743#p11743"><![CDATA[
erm I've checked it and it worked! Restart your bot<br>-<br>[11:33] *** Joins: bot (<a href="mailto:bot@unc.tk">bot@unc.tk</a>)<br>[11:33] *** Mode (Tweety:# +b *!*@unc.tk)<br>*** [Banned]: bot<br>[11:33] *** bot was kicked by Tweety (Infected spam drone. Visit <a href="http://kline.dal.net/exploits/akills.htm#ma" class="postlink">http://kline.dal.net/exploits/akills.htm#ma</a> for more information.)<br>-<br>bmask could be done simplier <br>set bmask "*!*@[lindex [split $uh @] 1]"<br>check this, it's easier to manage in case if you wanted to add new forbidden ctcp finger replies<br>bind join - * send:finger <br>set fingers {<br>"*%email*"<br>"example1"<br>"examplx"<br>"asdgfsdg"<br>"q8hack"<br>}<br>bind ctcr - FINGER check:finger <br>set spamkickmsg "Infected spam drone. Visit \002http://kline.dal.net/exploits/akills.htm#ma\002 for more information."<br><br>proc send:finger {nick uh hand chan} { <br>if {[matchattr $hand f|f] || [isop $nick $chan]} { return 0 } <br>putquick "PRIVMSG $nick :\001FINGER\001" <br>} <br><br>proc check:finger {nick uh hand dest key arg} { <br>  global spamkickmsg botnick fingers<br>  if {![isbotnick $dest]} { retrun } <br>foreach finger $fingers {<br>  set arg1 [string tolower $arg] <br>  if {[string match $finger $arg1]} {<br>    foreach chan [channels] { <br>     set bmask "*!*@[lindex [split $uh @] 1]"<br>      if {[onchan $nick $chan]} { <br>        putquick "MODE $chan +b $bmask" <br>        putserv "KICK $chan $nick :$spamkickmsg" <br>        newchanban $chan $bmask $botnick $spamkickmsg 240 <br>      } <br>    } <br>  } <br>} <br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sun Oct 06, 2002 5:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-10-06T00:42:44-04:00</updated>

		<published>2002-10-06T00:42:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11740#p11740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11740#p11740"/>
		<title type="html"><![CDATA[Ctcp scan tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11740#p11740"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * send:fingerbind ctcr - FINGER check:fingerset spamkickmsg "Infected spam drone. Visit \002http://kline.dal.net/exploits/akills.htm#ma\002 for more information."proc send:finger {nick uh hand chan} {if {[matchattr $hand f|f] || [isop $nick $chan]} { return 0 }putquick "PRIVMSG $nick :\001FINGER\001"}proc check:finger {nick uh hand dest key arg} {    global spamkickmsg botnick    if {![isbotnick $dest]} { retrun }    set arg1 [string tolower $arg]    if {([regexp -nocase "%email" $arg1]) || ([regexp -nocase "%iloveuayas" $arg1]) || ([regexp -nocase "ybxoevq@@" $arg1]) || ([regexp -nocase "%nama" $arg1]) || ([regexp -nocase "asdgfsdg" $arg1]) || ([regexp -nocase "Q8HaCk" $arg1])} {        foreach chan [channels] {            set bmask "*!*[string range $uh [string first "@" $uh] end]"            if {[onchan $nick $chan]} {                putquick "MODE $chan +b $bmask"                putserv "KICK $chan $nick :$spamkickmsg"                newchanban $chan $bmask $botnick $spamkickmsg 240            }        }    }}</code></pre></div>I get this error [00:34] Tcl error [check:finger]: wrong # args: should be "regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...?"<br><br>Is there something wrong with the code? Anyway I can fix it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Oct 06, 2002 12:42 am</p><hr />
]]></content>
	</entry>
	</feed>
