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

	<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>2005-03-10T08:25:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-03-10T08:25:24-04:00</updated>

		<published>2005-03-10T08:25:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47400#p47400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47400#p47400"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47400#p47400"><![CDATA[
"I found a drone, ban it!" What's the point on continuing the loop till the end of the list? It breakes the loop and continues normaly with the proc when a match was found, or dose it need to make more than I match? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Mar 10, 2005 8:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-10T07:10:51-04:00</updated>

		<published>2005-03-10T07:10:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47399#p47399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47399#p47399"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47399#p47399"><![CDATA[
<blockquote class="uncited"><div>If I where you I'd make it return "1" for a match and return "0" no match, and inside the proc to check the nick: if {[isSpamNick $nick]} { # is a match so ban or whatever }<br><br>Also, isn't a regexp fatser than that loop? Use break to stop a loop not return <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> with something like this:<div class="codebox"><p>Code: </p><pre><code>proc isSpamNick {nick} {   global names   set blah 0  foreach {x} $names {     if {[string match -nocase *${x}* $nick]} {       set blah 1 ; break    }   }   return "$blah"}</code></pre></div></div></blockquote>can i ask what exact advantage breaking a loop has, in this case cause where not working with I/O, so eof can't error when you do.. just wondering..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 10, 2005 7:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-10T06:33:47-04:00</updated>

		<published>2005-03-10T06:33:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47398#p47398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47398#p47398"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47398#p47398"><![CDATA[
So basically if we use break, with a loop, what is does it is: As we have a big list to match against and supposing the element we want to match is not last element in the list. So when we run the loop and it tries to match the first few  elements, hopefully somewhere in the middle a match occurs, so when the first match occurs it breaks the loop, so it doesn't go ahead and match for others elements in the list, as already a match has occured, right?<br><br>Basically break the loop and no need to check if a match has already occured as it would seem redundant and would waste time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Mar 10, 2005 6:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-03-10T02:02:34-04:00</updated>

		<published>2005-03-10T02:02:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47396#p47396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47396#p47396"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47396#p47396"><![CDATA[
If I where you I'd make it return "1" for a match and return "0" no match, and inside the proc to check the nick: if {[isSpamNick $nick]} { # is a match so ban or whatever }<br><br>Also, isn't a regexp fatser than that loop? Use break to stop a loop not return <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> with something like this:<div class="codebox"><p>Code: </p><pre><code>proc isSpamNick {nick} {   global names   set blah 0  foreach {x} $names {     if {[string match -nocase *${x}* $nick]} {       set blah 1 ; break    }   }   return "$blah"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Mar 10, 2005 2:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-09T19:14:37-04:00</updated>

		<published>2005-03-09T19:14:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47388#p47388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47388#p47388"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47388#p47388"><![CDATA[
return 0 is missing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> from isSpamNick, it was there tho but its gone somehow .. just thought id mention <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Mar 09, 2005 7:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-03-09T06:01:38-04:00</updated>

		<published>2005-03-09T06:01:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47383#p47383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47383#p47383"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47383#p47383"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set names {  Anemonella16 Courtney_ ATAKA-N^ Roose__  cinsellik EtaNiA_ chat_lady^ `Kathia^  ParneLLa^ ShirLey- _MariAna1 wilimini  EdAna_ realgirl^^ AnieLa^^ PhiLberta-  milena` Leda` ^MiNda Alala^^  ^AgNeS15 Devon__ sapopt CheriLyN1  BLONDGIRL^ BerNiA16 AnieLa^^ PhiLberta-  Rebecca__ esgirl^ Crescent^ Leda`  ^MiNda Alala^^ ^AgNeS15 Betta`25  celanie^ c_cromo12345 Aca-cia` ^Allison28  BerNiA16 aliSha18`15 `ninaa^^ EdevA15  esgirl^ Roberta^^ Hupa88 alatea16  ANezKA^^ Albus ^MeLwyN_ ArmeLLe  _Vanessa1 ^Jessica- KachiNe^^ trinkende_skifahrer  SarAid29 ^MeLwyN_ ArmeLLe _Vanessa1}proc isSpamNick {nick} {  global names  foreach {x} $names {    if {[string match -nocase *${x}* $nick]} {      return 1    }  }  return }</code></pre></div></div></blockquote>  Banmask types 2) - *!*@host.domain</div></blockquote>If you want to use Ofloo's code then you'll need to bind on join and check if the nick is a spamnick by using<div class="codebox"><p>Code: </p><pre><code>if {[isSpamNick $nick]} {</code></pre></div>and then ban mask:<blockquote class="uncited"><div>banmask type 2: *!*@[lindex [split $uhost @] 1]</div></blockquote>read tcl-commands.doc in your eggdrop's doc/ for more info on bind join and it's proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Mar 09, 2005 6:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[b|_ack]]></name></author>
		<updated>2005-03-08T21:25:07-04:00</updated>

		<published>2005-03-08T21:25:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47377#p47377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47377#p47377"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47377#p47377"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set names {  Anemonella16 Courtney_ ATAKA-N^ Roose__  cinsellik EtaNiA_ chat_lady^ `Kathia^  ParneLLa^ ShirLey- _MariAna1 wilimini  EdAna_ realgirl^^ AnieLa^^ PhiLberta-  milena` Leda` ^MiNda Alala^^  ^AgNeS15 Devon__ sapopt CheriLyN1  BLONDGIRL^ BerNiA16 AnieLa^^ PhiLberta-  Rebecca__ esgirl^ Crescent^ Leda`  ^MiNda Alala^^ ^AgNeS15 Betta`25  celanie^ c_cromo12345 Aca-cia` ^Allison28  BerNiA16 aliSha18`15 `ninaa^^ EdevA15  esgirl^ Roberta^^ Hupa88 alatea16  ANezKA^^ Albus ^MeLwyN_ ArmeLLe  _Vanessa1 ^Jessica- KachiNe^^ trinkende_skifahrer  SarAid29 ^MeLwyN_ ArmeLLe _Vanessa1}proc isSpamNick {nick} {  global names  foreach {x} $names {    if {[string match -nocase *${x}* $nick]} {      return 1    }  }  return }</code></pre></div></div></blockquote>  Banmask types 2) - *!*@host.domain<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5978">b|_ack</a> — Tue Mar 08, 2005 9:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-03-06T21:00:39-04:00</updated>

		<published>2005-03-06T21:00:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47269#p47269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47269#p47269"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47269#p47269"><![CDATA[
<blockquote class="uncited"><div>Also a good idea in this case would be to check if the nick is registered or, even if it is identified for?</div></blockquote>Not a bad idea except there would be a problem with services down and in DALnet's case we know only too well how frequently that happens.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Mar 06, 2005 9:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-06T20:52:32-04:00</updated>

		<published>2005-03-06T20:52:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47267#p47267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47267#p47267"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47267#p47267"><![CDATA[
Also a good idea in this case would be to check if the nick is registered or, even if it is identified for? As generally spam bots, drone bots don't have registered or identified nicks. (Only limited if your network has nick management services like - NickServ etc)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Mar 06, 2005 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-06T18:20:19-04:00</updated>

		<published>2005-03-06T18:20:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47256#p47256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47256#p47256"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47256#p47256"><![CDATA[
you are fighting already lost battle<br><br>it's not too hard for a semi-competent spammer to beat your hard-coded protection scheme the minute you introduce it - most spambot networks allow for easy and convenient change of the method used to generate nicks, user- and realnames <br><br>of course, if you are not an object of targeted attack but rather a victim of randomly roaming and uncontrolled spambots, chances are you can successfully identify them - with downside of continuous autokickbans being ban list overflow (so you'll need a mechanism for ban list management which guarantees some breathing space for manual bans)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 06, 2005 6:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-03-06T15:49:21-04:00</updated>

		<published>2005-03-06T15:49:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47249#p47249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47249#p47249"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47249#p47249"><![CDATA[
What about a simple <a href="http://tmml.sourceforge.net/doc/tcl/lsearch.html" class="postlink">lsearch</a>? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_idea.gif" width="15" height="15" alt=":idea:" title="Idea"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Mar 06, 2005 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-06T09:53:16-04:00</updated>

		<published>2005-03-06T09:53:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47230#p47230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47230#p47230"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47230#p47230"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set names {  Anemonella16 Courtney_ ATAKA-N^ Roose__  cinsellik EtaNiA_ chat_lady^ `Kathia^  ParneLLa^ ShirLey- _MariAna1 wilimini  EdAna_ realgirl^^ AnieLa^^ PhiLberta-  milena` Leda` ^MiNda Alala^^  ^AgNeS15 Devon__ sapopt CheriLyN1  BLONDGIRL^ BerNiA16 AnieLa^^ PhiLberta-  Rebecca__ esgirl^ Crescent^ Leda`  ^MiNda Alala^^ ^AgNeS15 Betta`25  celanie^ c_cromo12345 Aca-cia` ^Allison28  BerNiA16 aliSha18`15 `ninaa^^ EdevA15  esgirl^ Roberta^^ Hupa88 alatea16  ANezKA^^ Albus ^MeLwyN_ ArmeLLe  _Vanessa1 ^Jessica- KachiNe^^ trinkende_skifahrer  SarAid29 ^MeLwyN_ ArmeLLe _Vanessa1}proc isSpamNick {nick} {  global names  foreach {x} $names {    if {[string match -nocase *${x}* $nick]} {      return 1    }  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 06, 2005 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-03-06T08:26:20-04:00</updated>

		<published>2005-03-06T08:26:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47228#p47228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47228#p47228"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47228#p47228"><![CDATA[
I remember a not so old thread about such a script, a forum search should return positive results.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Mar 06, 2005 8:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-06T04:02:02-04:00</updated>

		<published>2005-03-06T04:02:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47222#p47222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47222#p47222"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47222#p47222"><![CDATA[
Well, I knew that too, infact I use a similar code for my drone nicks, with regexp matching, but he wants it for all these specific nicks, and exact matching since he gave them all.<br><blockquote class="uncited"><div>Is complicated?</div></blockquote>* awyeah stares at Alchera<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Mar 06, 2005 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-03-05T17:38:04-04:00</updated>

		<published>2005-03-05T17:38:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47203#p47203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47203#p47203"/>
		<title type="html"><![CDATA[spam bots nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47203#p47203"><![CDATA[
Wouldn't is be just easier to use a regular expression to ban numerical nicks, nicks with any of those characters in them (__, -, ^ &amp;c)?<br>Example:<div class="codebox"><p>Code: </p><pre><code>if {[regexp {^[^aeiou_^-`]+$} $nick] \   &amp;&amp; [regexp {[^0-9]?$} $nick] \   &amp;&amp; ([string length $nick] &gt; 3)} {...}</code></pre></div>I suggest reading <a href="http://forum.egghelp.org/viewtopic.php?t=4982&amp;highlight=weird" class="postlink">this</a> post for more information.<br><br>What you propose awyeah is just too complicated and flawed in my opinion for the simple reason that if b|_ack's problem is spam bots the nicks are random but the <strong class="text-strong">one</strong> constant are the numbers and and the ^'s etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Mar 05, 2005 5:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
