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

	<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-07-12T11:10:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-12T11:10:48-04:00</updated>

		<published>2003-07-12T11:10:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23375#p23375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23375#p23375"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23375#p23375"><![CDATA[
wouldn't this be a more simple script ?<div class="codebox"><p>Code: </p><pre><code>##channels u want the script to apply onset my.chans "#TCLhelp #TCLlovers"##set ban reasonset brsn "your reason here"###code###bind join - * check:nickproc check:nick {nick uhost hand chan} {foreach chan [split $::my.chans] {if {[regexp {^(\w){3}(\d){2}\w(\d){3}$} $nick] &amp;&amp; [botisop $chan]} {  set mask "*!*@[lindex [split $uhost @] 1]"  putquick "KICK $chan $nick :$::brsn"  putquick "MODE $chan +b $mask"  } }}</code></pre></div>also yes, I think your script should work fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jul 12, 2003 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-07-12T10:21:51-04:00</updated>

		<published>2003-07-12T10:21:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23372#p23372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23372#p23372"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23372#p23372"><![CDATA[
would this kick the 3rd bot nick, or am i missing something?<br><div class="codebox"><p>Code: </p><pre><code># Channels you want to Check for Bot Nicks on. # Multiple channels seperated by spaces.set my.chans "#TCLhelp #TCLlovers"# Set the Max Number of Bot Nicks Allowed before a kickset bot.limit 3# During the Number of Secondsset bot.sec 7bind join - * bot:checkproc bot:check {nick uhost handle chan} {  global botnick my.chans bot.limit bot.sec bot.ctr  set chan [string tolower $chan]  if {![botisop $chan]} {    return   }  if {![info exists bot.ctr($chan)]} {     return 0  }  if {[regexp {^(\w){3}(\d){2}\w(\d){3}$} $nick]} {     incr bot.ctr($chan) 1    utimer $bot.sec [list bot:dec $chan]    if {$bot.ctr($chan) &gt;= $bot.limit} {      ban:bots $nick $chan $type    } else {      return 0    }  }}proc bot:dec {chan} {  global bot.ctr  incr bot.ctr($chan) -1}foreach chan [strlwr $my.chans] {   if {![info exists bot.ctr([strlwr $chan])]} {     set bot.ctr([strlwr $chan]) 0   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sat Jul 12, 2003 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-10T10:08:19-04:00</updated>

		<published>2003-07-10T10:08:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23270#p23270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23270#p23270"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23270#p23270"><![CDATA[
well creat a bind for join.<br>example: <strong class="text-strong">bind join - * proc-name</strong><br>then from tcl-commands.doc in your eggdrop's /doc directory.<br>creat the proc for the join bind and add the like given by Papillon:<br><strong class="text-strong">if {[regexp {^(\w){3}(\d){2}\w(\d){3}$} $nick]} { <br>  blablabla ban or whatever <br>}</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jul 10, 2003 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-07-10T08:53:39-04:00</updated>

		<published>2003-07-10T08:53:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23264#p23264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23264#p23264"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23264#p23264"><![CDATA[
hi,<br>i get flooded with bots that use those types of nicks too.<br><br>how can i use that regep code?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Thu Jul 10, 2003 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-09T13:43:20-04:00</updated>

		<published>2003-07-09T13:43:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23230#p23230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23230#p23230"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23230#p23230"><![CDATA[
ok, i understoud.<br><br>thanx <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=3085">Sir_Fz</a> — Wed Jul 09, 2003 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-09T08:13:30-04:00</updated>

		<published>2003-07-09T08:13:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23223#p23223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23223#p23223"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23223#p23223"><![CDATA[
the regexp I gave will just return 1 on match, or 0 if not.. so you could use it like this<div class="codebox"><p>Code: </p><pre><code>if {[regexp {^(\w){3}(\d){2}\w(\d){3}$} $nick]} {  blablabla ban or whatever}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jul 09, 2003 8:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-09T07:45:27-04:00</updated>

		<published>2003-07-09T07:45:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23222#p23222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23222#p23222"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23222#p23222"><![CDATA[
oh ok, well the no!spam strip code:<div class="codebox"><p>Code: </p><pre><code>set text [ctrl:filter $text]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 }</code></pre></div>so the regexp u posted above should be like<br>set nick [comp:nick $nick]<br><br>and then add a proc like:<br>proc comp:nick {com} { <br> regexp {^(\w){3}(\d){2}\w(\d){3}$} $nick<br>} <br><br>or how ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 09, 2003 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-07-09T06:22:18-04:00</updated>

		<published>2003-07-09T06:22:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23220#p23220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23220#p23220"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23220#p23220"><![CDATA[
Regexp is a complex matching system.<br><br>Where normal string based matches (glob style) you can detect for certain characters. It doesn't allow for exraction, only the evidance of existance.<br><br>Regexp allow to to prove they are there, extract, and can even do this matching, based on if certain part exist or not.<br><br>The quickest example I can give of this, is the stripping code used by No!Spam.<br><br>Colour codes are made up of a control character, the forground colour, a background colour and comma.<br><br>Not all of these elements are required to produce a colour, and text may or may not contain them at all.<br><br>A regular expression can and does remove the colour code, even if certain parts of it are missing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jul 09, 2003 6:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-09T06:00:55-04:00</updated>

		<published>2003-07-09T06:00:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23218#p23218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23218#p23218"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23218#p23218"><![CDATA[
may I ask what does a regexp do ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 09, 2003 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-09T02:57:54-04:00</updated>

		<published>2003-07-09T02:57:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23216#p23216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23216#p23216"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23216#p23216"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regexp {^(\w){3}(\d){2}\w(\d){3}$} $nick</code></pre></div>dunno if it's the best one but it should work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jul 09, 2003 2:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2003-07-09T02:45:48-04:00</updated>

		<published>2003-07-09T02:45:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23214#p23214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23214#p23214"/>
		<title type="html"><![CDATA[detecting this pattern with regexp ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23214#p23214"><![CDATA[
Wna21E251 (<a href="mailto:Wnj56K492@clt74-100-186.carolina.rr.com">Wnj56K492@clt74-100-186.carolina.rr.com</a>) joined #MyChannel.<br>Mqa38W416 (~<a href="mailto:Ihq93J246@host116-142.pool80180.interbusiness.it">Ihq93J246@host116-142.pool80180.interbusiness.it</a>) joined #MyChannel.<br>Pqm42J441 (Yjv89B611@80.192.158.40) joined #MyChannel.<br>Gas77K949 (cthkfqb@217.164.49.17) left #MyChannel.<br>Wmd78U721 (~<a href="mailto:Pgp6W653@12-254-126-139.client.attbi.com">Pgp6W653@12-254-126-139.client.attbi.com</a>) left #MyChannel.<br>Pqm42J441 (Yjv89B611@80.192.158.40) left #MyChannel.<br><br>What's the best RegExp to have an exact match of such similar nicks (they all have the same composition).<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Wed Jul 09, 2003 2:45 am</p><hr />
]]></content>
	</entry>
	</feed>
