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

	<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>2004-03-30T22:48:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-30T22:48:23-04:00</updated>

		<published>2004-03-30T22:48:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35107#p35107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35107#p35107"/>
		<title type="html"><![CDATA[Need help with my nick evaluating script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35107#p35107"><![CDATA[
thanks a lot, i really appreciate it  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Tue Mar 30, 2004 10:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-30T22:35:23-04:00</updated>

		<published>2004-03-30T22:35:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35106#p35106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35106#p35106"/>
		<title type="html"><![CDATA[Need help with my nick evaluating script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35106#p35106"><![CDATA[
would be simpler to just do:<div class="codebox"><p>Code: </p><pre><code>if {[regexp {^[A-z][0-9]{1,}$} $nick]} {.... do stuff ...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Mar 30, 2004 10:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-30T21:03:53-04:00</updated>

		<published>2004-03-30T21:03:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35104#p35104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35104#p35104"/>
		<title type="html"><![CDATA[Need help with my nick evaluating script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35104#p35104"><![CDATA[
I have a simple script to detect and kicks irritating drones that join a channel of mine frequently.<br><br>They all have a familiar characteristic of having a alphabet first then the rest numbers kind of nick.<br><br>e.g. k123652735 , b261237863, k4398734, x3645763<br><br>I made a simple script to check the nick but it seems it doesnt work. Please help me out!<br><br>bind join - * chknick<br><br>proc chkchk {nick uhost hand chan} {<br>global botnick<br>set nickchar 0<br>#marks nick guilty as a drone unless proven otherwise<br>set nickdr 1<br>#evaluating nick<br>foreach letter [split $nick ""] { <br>if {(![catch {incr $letter}]) &amp;&amp; ($nickchar &gt; 1)} {<br>incr nickchar<br>set nickdr 0 <br>#just for debug purposes<br>putlog "$nick is proven innocent!"<br>} <br>}<br>if {$nickdr == 1} { putquick "KICK $chan $nick :Get out! }<br>}<br><br>It seems even though the $letter is a number, it never does go through the if {![catch {incr $letter}]} condition. And ALL nicks that join are marked  a drone.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>What should I do   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by Guest — Tue Mar 30, 2004 9:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
