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

	<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-09-18T01:25:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-09-18T01:25:27-04:00</updated>

		<published>2002-09-18T01:25:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11040#p11040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11040#p11040"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11040#p11040"><![CDATA[
What I need this code to do is<br>1- detect nicks having 5 or more successive consonants (i.e. agubnftrd)<br>2- the successive consonants should be different (i.e. it should not react on nicks such as "afojjjjjj")<br>3- the nick should only contain letters (i.e. it should not react on nicks such as "drummer21")<br><br>Thanks in advance.<br><br>here is the code   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><div class="codebox"><p>Code: </p><pre><code>bind join - * kickitproc kickit {nick host hand chan} {    global botnick    if {$nick == $botnick} { return 0 }      if {[regexp -nocase {[^a,e,i,o,u,y]{5,}} $nick]} {        newchanban $chan "*!$host" $botnick "Out" 10        putkick $chan $nick "Out! 10 mins ban"      }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Wed Sep 18, 2002 1:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-17T14:42:06-04:00</updated>

		<published>2002-09-17T14:42:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11021#p11021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11021#p11021"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11021#p11021"><![CDATA[
And why did you take out the ban code from your posting? You should post, and i cannot stress this enough, *THE FULL ORIGINAL* version of the script. Some tiny details often cause problems but easily get overloked.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Tue Sep 17, 2002 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-16T04:32:04-04:00</updated>

		<published>2002-09-16T04:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10951#p10951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10951#p10951"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10951#p10951"><![CDATA[
I realy can't see any way of this happening, other than the proc being renamed after originaly starting the script.<br><br>IE. You start the script, change stuff around, including the name of the proc, and then do a rehash.<br><br>This would cause the original script, to remain in memory, and is possibly where to problems arise. Try a .restart to test it.<br><br>Another thing to try, is placing -- after the -nocase switch.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Sep 16, 2002 4:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-16T04:30:19-04:00</updated>

		<published>2002-09-16T04:30:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10950#p10950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10950#p10950"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10950#p10950"><![CDATA[
Maybe you have some weird version of tcl and it does regexp differently than on our computers.<br><br>Test the regexp by itself with the .tcl command:<br><br>.tcl regexp -nocase {[^a,e,i,o,u,y]{5,}} "A---NoSpam"<br><br>If that returns 0, then you're having some other error. Have you done .restart lately? Maybe you have an old version of the script still loaded hehe.<br><br>If it returns 1, then reinstall Tcl or use a different method of detecting bad nicks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Sep 16, 2002 4:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-09-16T02:23:59-04:00</updated>

		<published>2002-09-16T02:23:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10947#p10947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10947#p10947"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10947#p10947"><![CDATA[
There is a ban code but I took it out.<br>Anyway, it's the same. With the code I posted the bot kicks the nick<br>A---NoSpam eventhough I unloaded all other tcl files and only kept this one  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br>Could it be that the character "-" denotes some sort of special meaning ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Mon Sep 16, 2002 2:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-16T01:13:16-04:00</updated>

		<published>2002-09-16T01:13:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10946#p10946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10946#p10946"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10946#p10946"><![CDATA[
Well considering that there is no banning code in what you posted, it is limpossible for this to be causing the bans heh.<br><br>Maybe you're using some other script. Search for "newchanban" or "+b".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Sep 16, 2002 1:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-09-16T00:51:20-04:00</updated>

		<published>2002-09-16T00:51:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10945#p10945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10945#p10945"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10945#p10945"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * possiblespamnickproc possiblespamnick {nick host hand chan} {    global botnick    if {$nick == $botnick} { return 0 }    if {[matchattr $hand "n"] || [matchattr $hand "m"] || [matchattr $hand "b"]} { return 0 } {      if {[regexp -nocase {[^a,e,i,o,u,y]{5,}} $nick]} {        putkick $chan $nick "Possible spammer detected"      }    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Mon Sep 16, 2002 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-15T15:16:59-04:00</updated>

		<published>2002-09-15T15:16:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10930#p10930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10930#p10930"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10930#p10930"><![CDATA[
As said in most situation like this, we would need to see the rest of the script, to so if there any other issues at hand affecting this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Sep 15, 2002 3:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-09-15T13:48:45-04:00</updated>

		<published>2002-09-15T13:48:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10927#p10927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10927#p10927"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10927#p10927"><![CDATA[
Thx for debugging that ... however the bot was banning the ip of the nick A---NoSpam as soon as it joined.<br>When I removed the code I showed you from my eggy, it stopped banning the nick.<br>That's what puzzles me!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Sun Sep 15, 2002 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-15T09:51:08-04:00</updated>

		<published>2002-09-15T09:51:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10913#p10913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10913#p10913"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10913#p10913"><![CDATA[
% [darko@blah darko]$ tclsh<br>% set nick A---NoSpam<br>A---NoSpam<br>% regexp -nocase {[^a,e,i,o,u,y]{5,}} $nick<br>0<br>%<br><br>Guess that explains it. There is no problem with your regexp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Sun Sep 15, 2002 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-09-15T04:11:15-04:00</updated>

		<published>2002-09-15T04:11:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10904#p10904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10904#p10904"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10904#p10904"><![CDATA[
Hi, <br><br>I'm using the following condition to detect nicks who have 5 or more consecutive consonants (possible spammers)<br><div class="codebox"><p>Code: </p><pre><code>if {[regexp -nocase {[^a,e,i,o,u,y]{5,}} $nick]} {  ban and kick here...}</code></pre></div>However when the nick <strong class="text-strong">A---NoSpam</strong> joined my channel ... he got kicked. What's wrong ?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Sun Sep 15, 2002 4:11 am</p><hr />
]]></content>
	</entry>
	</feed>
