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

	<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>2003-09-14T08:37:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-14T08:37:52-04:00</updated>

		<published>2003-09-14T08:37:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27074#p27074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27074#p27074"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27074#p27074"><![CDATA[
<blockquote class="uncited"><div>set realname [strlwr [ctrl:filter [string range [lindex [split $arg] end] 1 end]]]</div></blockquote>that means the bot see all realnames as lower-case (even if they have capital letters)<br><br>so:<blockquote class="uncited"><div>set badr(list) { <br>"*mahoo*" <br>"*blowjob*" <br>"*hot?dot*" <br>"*smile*" <br>"*tricky*" <br>"*bmw??ever*" <br>"*URENS*HN*" <br>"*I WILL CLEAN HOUSE*" <br>}</div></blockquote> shoud be all in lower-case letters (it doesn't matter if someone puts capital letters)<br>=&gt; "*URENS*HN*" and "*I WILL CLEAN HOUSE*"  <strong class="text-strong">should be</strong> "*urens*hn*" and "*i will clean house*" <br><br>also what user meant is replace:<div class="codebox"><p>Code: </p><pre><code>if {![string match $bah $realname]} {</code></pre></div>with <div class="codebox"><p>Code: </p><pre><code>if {![string match -nocase $bah $realname]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Sep 14, 2003 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Volume]]></name></author>
		<updated>2003-09-14T06:15:11-04:00</updated>

		<published>2003-09-14T06:15:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27072#p27072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27072#p27072"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27072#p27072"><![CDATA[
<blockquote class="uncited"><div>use the -nocase option with 'string match'</div></blockquote>sorry , but my tcl is not so good !<br>i cant change it.<br>can somebody help me ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3212">Volume</a> — Sun Sep 14, 2003 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-07T16:27:52-04:00</updated>

		<published>2003-09-07T16:27:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26715#p26715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26715#p26715"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26715#p26715"><![CDATA[
use the -nocase option with 'string match'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Sep 07, 2003 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Volume]]></name></author>
		<updated>2003-09-07T15:05:14-04:00</updated>

		<published>2003-09-07T15:05:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26708#p26708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26708#p26708"/>
		<title type="html"><![CDATA[@caesar]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26708#p26708"><![CDATA[
hello caesar,<br>in the script must be a little bug. capslock names (BIG WORDS) dont get a ban but the script have the badrealname into...<br><br>PCorn is -<a href="mailto:PC0rn@chello062178241113.1.14.vie.surfer.at">PC0rn@chello062178241113.1.14.vie.surfer.at</a> * I WILL CLEAN HOUSE<br>PCorn on #schweiz #austria #windows #duesseldorf <br>PCorn using *.stealth.net [192.168.18.2] Stealth Communications - IPv6, Ne<br>PCorn End of WHOIS list.<br><br>This user dont get ban but the bad realname is in the script!<br><br>Problem with this user too:<br><br>Warner is -<a href="mailto:warner@p508C230F.dip.t-dialin.net">warner@p508C230F.dip.t-dialin.net</a> * HURENSOHN<br>Warner using uni-karlsruhe.de University of Karlsruhe, Germany<br>Warner has been idle 4secs, signed on Sun Sep 07 21:04:21<br>warner End of WHOIS list.<br>-<br><br>i hope you can help me thank you very mutch<br><div class="codebox"><p>Code: </p><pre><code># What bad realnames should be banned?set badr(list) {"*mahoo*""*blowjob*""*hot?dot*""*smile*""*tricky*""*bmw??ever*""*URENS*HN*""*I WILL CLEAN HOUSE*"}# For how many minutes whould you like the ban?set badr(time) 60# What reason will be used when an person is found using an bad realname?set badr(reason) "Mag dich net ciao :)"# binds #bind join - * badrealname:joinbind raw - 311 badrealname:check# join #proc badrealname:join {nick host hand chan} {  if {![validuser $hand] || [strlwr $nick] != [strlwr $::botnick]} {    putserv "WHOIS $nick"  }}# check #proc badrealname:check {from key arg} {  set realname [strlwr [ctrl:filter [string range [lindex [split $arg] end] 1 end]]]  foreach bah $::badr(list) {    if {![string match $bah $realname]} {      continue    }    foreach chan [channels] {      if {![onchan [lindex $arg 1]]} {        continue      }      newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)    }    break  }}proc ctrl:filter {str} {  regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str  return $str}putlog "badrealname.tcl.. loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3212">Volume</a> — Sun Sep 07, 2003 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-08T13:05:30-04:00</updated>

		<published>2003-06-08T13:05:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21464#p21464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21464#p21464"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21464#p21464"><![CDATA[
I bet "not a bug advice on the partyline" meant that there isn't a tcl error shown on the partyline.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Jun 08, 2003 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Volume]]></name></author>
		<updated>2003-06-08T06:55:16-04:00</updated>

		<published>2003-06-08T06:55:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21449#p21449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21449#p21449"/>
		<title type="html"><![CDATA[@caesar]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21449#p21449"><![CDATA[
<blockquote class="uncited"><div>Actualy it dose work smoothly and bans corectly as far as I can see in my tests. Please explain what you mean by "The Bot scan not chans ore not ban the user. But its not a bug advice on the partyline." cos I haven't understood a thing.</div></blockquote>Right <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">) this bot have me not baned, because the login have +fmno flag on the chan *G*<br><br>Sorry, i have vergotten to change the ident for testing  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3212">Volume</a> — Sun Jun 08, 2003 6:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-08T06:35:55-04:00</updated>

		<published>2003-06-08T06:35:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21448#p21448</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21448#p21448"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21448#p21448"><![CDATA[
Actualy it dose work smoothly and bans corectly as far as I can see in my tests. Please explain what you mean by "The Bot scan not chans ore not ban the user. But its not a bug advice on the partyline." cos I haven't understood a thing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jun 08, 2003 6:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Volume]]></name></author>
		<updated>2003-06-08T06:04:22-04:00</updated>

		<published>2003-06-08T06:04:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21445#p21445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21445#p21445"/>
		<title type="html"><![CDATA[@caesar]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21445#p21445"><![CDATA[
good morning <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>First you are not dumb ! You can so good coding.<br>I´m not a quarter as good.<br><br>Second:<br>The Bot scan not chans ore not ban the user. But its not a bug advice on the partyline.<br><blockquote class="uncited"><div>I'm so dumb sometimes.. replace the check proc with this one:<div class="codebox"><p>Code: </p><pre><code># check #proc badrealname:check {from key arg} {   set realname [strlwr [ctrl:filter [string range [lindex [split $arg] end] 1 end]]]  foreach bah $::badr(list) {    if {![string match $bah $realname]} {      continue    }    foreach chan [channels] {      if {![onchan [lindex $arg 1]]} {        continue      }      newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)    }    break  }}</code></pre></div></div></blockquote><br><div class="codebox"><p>Code: </p><pre><code># What bad realnames should be banned? set badr(list) { "*mahoo*" "*blowjob*" "*hot?dot*"} # For how many minutes whould you like the ban? set badr(time) 60 # What reason will be used when an person is found using an bad realname? set badr(reason) "Ich hab dir doch gesagt: Kein Spam ! ;o" # binds # bind join - * badrealname:joinbind raw - 311 badrealname:check # join # proc badrealname:join {nick host hand chan} {   if {![validuser $hand] || [strlwr $nick] != [strlwr $::botnick]} {     putserv "WHOIS $nick"   } } # check # proc badrealname:check {from key arg} {   set realname [strlwr [ctrl:filter [string range [lindex [split $arg] end] 1 end]]]   foreach bah $::badr(list) {     if {![string match $bah $realname]} {       continue     }     foreach chan [channels] {       if {![onchan [lindex $arg 1]]} {         continue       }       newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)     }     break   } } proc ctrl:filter {str} {   regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str   return $str } putlog "badrealname.tcl.. loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3212">Volume</a> — Sun Jun 08, 2003 6:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-08T02:19:56-04:00</updated>

		<published>2003-06-08T02:19:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21436#p21436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21436#p21436"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21436#p21436"><![CDATA[
I'm so dumb sometimes.. replace the check proc with this one:<div class="codebox"><p>Code: </p><pre><code># check #proc badrealname:check {from key arg} {   set realname [strlwr [ctrl:filter [string range [lindex [split $arg] end] 1 end]]]  foreach bah $::badr(list) {    if {![string match $bah $realname]} {      continue    }    foreach chan [channels] {      if {![onchan [lindex $arg 1]]} {        continue      }      newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)    }    break  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jun 08, 2003 2:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-08T00:59:34-04:00</updated>

		<published>2003-06-08T00:59:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21432#p21432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21432#p21432"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21432#p21432"><![CDATA[
Lol are you guys going for the "longest thread ever" award?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Jun 08, 2003 12:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Volume]]></name></author>
		<updated>2003-06-07T23:13:22-04:00</updated>

		<published>2003-06-07T23:13:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21429#p21429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21429#p21429"/>
		<title type="html"><![CDATA[@caesar sorry for the disruption but i have find yet a bug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21429#p21429"><![CDATA[
<blockquote class="uncited"><div>Oups, sorry, forgot about it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> .. replace from:<div class="codebox"><p>Code: </p><pre><code>newchanban $::badr(chan) "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)</code></pre></div></div></blockquote><span style="text-decoration:underline"><strong class="text-strong">Tcl error [badrealname:check]: can't read "chan": no such variable</strong></span><br><br>@caesar: where is the last bug ? thank you for your many helps !  <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># What bad realnames should be banned? set badr(list) { "*mahoo*" "*blowjobs*" "*hot?dot*"} # For how many minutes whould you like the ban? set badr(time) 60 # What reason will be used when an person is found using an bad realname? set badr(reason) "Ich hab dir doch gesagt: Kein Spam ! ;o" # binds # bind join - * badrealname:joinbind raw - 311 badrealname:check # join # proc badrealname:join {nick host hand chan} {   if {![validuser $hand] || [strlwr $nick] != [strlwr $::botnick]} {     putserv "WHOIS $nick"   } } # check # proc badrealname:check {from key arg} {   set realname [strlwr [ctrl:filter [string range [lindex [split $arg] end] 1 end]]]   foreach bah $::badr(list) {     if {![string match $bah $realname]} {       continue     }     newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)    break   } } proc ctrl:filter {str} {   regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str   return $str } putlog "badrealname.tcl.. loaded." </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3212">Volume</a> — Sat Jun 07, 2003 11:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-07T11:20:44-04:00</updated>

		<published>2003-06-07T11:20:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21407#p21407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21407#p21407"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21407#p21407"><![CDATA[
Oups, sorry, forgot about it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> .. replace from:<div class="codebox"><p>Code: </p><pre><code>newchanban $::badr(chan) "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>newchanban $chan "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jun 07, 2003 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Volume]]></name></author>
		<updated>2003-06-07T06:23:18-04:00</updated>

		<published>2003-06-07T06:23:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21400#p21400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21400#p21400"/>
		<title type="html"><![CDATA[@caesar]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21400#p21400"><![CDATA[
<blockquote class="uncited"><div>replace from:<div class="codebox"><p>Code: </p><pre><code>bind join - "$badr(chan) *" badrealname:join </code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>bind join - * badrealname:join</code></pre></div></div></blockquote>hello,<br><br>what must i do with the ban ?<br><div class="codebox"><p>Code: </p><pre><code>newchanban $::badr(chan) "*!*@[lindex [split $arg] 3]" $::botnick $::badr(reason) $::badr(time)</code></pre></div>In this line is the ::badr(chan) too.<br>[12:13:34] &lt;Geist&gt; [12:33] Tcl error [badrealname:check]: invalid channel: #channel<br>when i will this script in all chans work<br><br>sorry for my bad english<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3212">Volume</a> — Sat Jun 07, 2003 6:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Volume]]></name></author>
		<updated>2003-06-07T05:48:34-04:00</updated>

		<published>2003-06-07T05:48:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21395#p21395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21395#p21395"/>
		<title type="html"><![CDATA[@stdragon]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21395#p21395"><![CDATA[
<blockquote class="uncited"><div>Actually, "unmatched open quote" means you have a quote (like ") but no closing quote. If you look at the list, you can see that you have<br><br>"*hot-dot*<br>(note no " on the end)</div></blockquote> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> how disconcerting <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><br><br>Thank you for your help <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=3212">Volume</a> — Sat Jun 07, 2003 5:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-06T19:05:16-04:00</updated>

		<published>2003-06-06T19:05:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21387#p21387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21387#p21387"/>
		<title type="html"><![CDATA[Whois ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21387#p21387"><![CDATA[
Actually, "unmatched open quote" means you have a quote (like ") but no closing quote. If you look at the list, you can see that you have<br><br>"*hot-dot*<br>(note no " on the end)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Jun 06, 2003 7:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
