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

	<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>2007-08-21T21:52:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-20T00:46:50-04:00</updated>

		<published>2007-08-20T00:46:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75409#p75409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75409#p75409"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75409#p75409"><![CDATA[
Tested the script for various echox matching criterias. Found out that all those regexp checks were just basically redundant and slowed the script more.<br><blockquote class="uncited"><div>- Removed all additional regexp checks.<br>- Shortened code for faster processing.</div></blockquote><em class="text-italics"><span style="color:red">*** Script updated and uploaded</span></em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 20, 2007 12:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-15T22:56:22-04:00</updated>

		<published>2007-08-15T22:56:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75308#p75308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75308#p75308"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75308#p75308"><![CDATA[
<blockquote class="uncited"><div>i got that error in DCC.<br>Tcl error [echox:who:chan]: missing close-bracket</div></blockquote>Missed a square bracket in one of the checking conditions for the echox:who:chan procedure.<br><br><em class="text-italics"><span style="color:red">*** Error fixed and script uploaded</span></em><br><br>You can download the script again from the same link! and thanks for reporting the error.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Aug 15, 2007 10:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aut0Cr0ss]]></name></author>
		<updated>2007-08-15T22:42:55-04:00</updated>

		<published>2007-08-15T22:42:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75307#p75307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75307#p75307"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75307#p75307"><![CDATA[
i got that error in DCC.<br>Tcl error [echox:who:chan]: missing close-bracket<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9068">Aut0Cr0ss</a> — Wed Aug 15, 2007 10:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-13T22:39:54-04:00</updated>

		<published>2007-08-13T22:39:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75261#p75261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75261#p75261"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75261#p75261"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>but we are more smarter</div></blockquote>It's bugging me.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><blockquote class="uncited"><div>but we are smarter</div></blockquote></div></blockquote>Haha, ok edited.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br><em class="text-italics">Note: You can change the script's default kick message to whatever you like; that wouldn't interest me a bit.</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 13, 2007 10:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-08-13T22:34:18-04:00</updated>

		<published>2007-08-13T22:34:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75260#p75260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75260#p75260"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75260#p75260"><![CDATA[
<blockquote class="uncited"><div>but we are more smarter</div></blockquote>It's bugging me.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><blockquote class="uncited"><div>but we are smarter</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Aug 13, 2007 10:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-13T21:40:57-04:00</updated>

		<published>2007-08-13T21:40:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75258#p75258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75258#p75258"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75258#p75258"><![CDATA[
<em class="text-italics">echoX Remover v1.32.b</em> has been updated with the following:<br><blockquote class="uncited"><div>(*) Added additional regexp checks for the realname database<br>(*) Added user configurable script options<br>(*) Added timer to who channel users</div></blockquote>Please download the latest revised version from the link in the first post of this thread.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 13, 2007 9:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-13T20:36:00-04:00</updated>

		<published>2007-08-13T20:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75256#p75256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75256#p75256"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75256#p75256"><![CDATA[
<blockquote class="uncited"><div>There is a fundamental difference between the two examples you listed, one has a leading and trailing newline, the other does not. This will generate quite different result when converting the string into a list, by splittin on newlines, as the first case will appear to have an empty entry at the beginning and the end.</div></blockquote>Yep, thats why I had used lrange as in my first case for the first list-like expression you posted. However, yeilding an empty first and last element in the list wouldn't really make the script buggy since matching with a user ident (which cannot be null) or even a realname (which cannot be null), but it was just for the purpose of clarity I added it, when I tested it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 13, 2007 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-08-13T19:56:00-04:00</updated>

		<published>2007-08-13T19:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75254#p75254</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75254#p75254"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75254#p75254"><![CDATA[
@Sir_Fz: It is something inbetween string and list. It has a structure similar to list, but if you're not careful when adding entries, you'll end up breaking the list-structure. Hence it's not quite a list (yes, in this case, as of now, list commands will work on it, despite it not being a list). Using list or split as illustrated above will make sure it's a proper list, regardless of any special characters within any list-items.<br><br>There is a fundamental difference between the two examples you listed, one has a leading and trailing newline, the other does not. This will generate quite different result when converting the string into a list, by splittin on newlines, as the first case will appear to have an empty entry at the beginning and the end.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Aug 13, 2007 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-08-13T19:40:00-04:00</updated>

		<published>2007-08-13T19:40:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75253#p75253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75253#p75253"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75253#p75253"><![CDATA[
There's no difference between<div class="codebox"><p>Code: </p><pre><code>set list {element1elmenet2}</code></pre></div>and<div class="codebox"><p>Code: </p><pre><code>set list {element1element2}</code></pre></div>as far as I know. It is a list and IMO there's no need for [split] at all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Aug 13, 2007 7:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-13T21:58:15-04:00</updated>

		<published>2007-08-13T12:16:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75249#p75249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75249#p75249"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75249#p75249"><![CDATA[
Thanks for the detailed info. I already knew most of it. If I use:<br><div class="codebox"><p>Code: </p><pre><code>set idfile {adamsallen...wrightyoung}</code></pre></div>That would solve the problem and I wouldn't need to use lrange. <br><br>The long databases were copied exactly the same from the echoX inviter script (mIRC script). I used them as they were in the mIRC script (copied from a text file); each element in a separate line. <br><br>Consider this I didn't use the nicks database, (only user ident and realname databases) because it was a 82kb text file and that IMHO would eat alot of memory for processing and slow the bot down especially.<br><br>Well I think I will add the split when I declare the list, rather than incorporating it into the procedure.<br><br><em class="text-italics"><span style="color:red">*** Script fixed and uploaded</span></em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 13, 2007 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-08-13T10:00:29-04:00</updated>

		<published>2007-08-13T10:00:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75246#p75246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75246#p75246"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75246#p75246"><![CDATA[
Actually, wether idfile is a list or not is abit undefined. It does have a list-like structure, yet is handcrafted, so splitting on newlines really is'nt such a bad idea. Since you'll only use it as a list within the script, it might be a good idea to "mark" it as list as you define it, either using split or list, rather than doing conversions with split further on.<br><br>As for empty items in the beginning and end, try defining the string such as this:<div class="codebox"><p>Code: </p><pre><code>set idfile {adamsallen...wrightyoung}</code></pre></div>Or possibly<div class="codebox"><p>Code: </p><pre><code>set idfile [split {adamsallen...wrightyoung} "\n"]</code></pre></div>If you'd like to use list instead, try this:<div class="codebox"><p>Code: </p><pre><code>set idfile [list adams \allen \...wright \young]</code></pre></div>Could be achieved in a few other ways aswell.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Aug 13, 2007 10:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-13T02:50:03-04:00</updated>

		<published>2007-08-13T02:50:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75236#p75236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75236#p75236"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75236#p75236"><![CDATA[
<blockquote class="uncited"><div>You're applying [split] on a list again.<div class="codebox"><p>Code: </p><pre><code>set idlist [split [lrange [split $idfile "\n"] 1 end-1]]</code></pre></div>idfile is already a list in your script so this should be enough:<div class="codebox"><p>Code: </p><pre><code>set idlist [lrange $idfile 1 end-1]</code></pre></div>although I don't know why you're doing this (not considering the first and last elements). Same with fnfile (it's also already a list).</div></blockquote>Yeah my bad shouldn't apply split again on a list, it won't affect anything however, but it would be redundant, as I said its still a testrelease. <br><br>The reason for using lrange with index 1 to end-1 is because:<br><div class="codebox"><p>Code: </p><pre><code>&lt;adapter&gt; [02:36] tcl: evaluate (.tcl): split $idfile "\n"&lt;adapter&gt; Tcl: {} adams allen allison alvarez anderson andrews armstrong arnold avila bailey baker barnes bennett bishop boyd bradley brooks brown bryan burke burton butler campbell carlson carr carter chase chen christensen clark collins comer cook cooper cox crawford cunningham davis day dean dickinson edwards elliott ellis evans fischer fisher fong ford freeman frost garcia gardner gomes gomez gonzales graham green griffin hall hamilton hansen hanson harris harrison hartman harvey hayes henderson henry&lt;adapter&gt; Tcl: hernandez hill holmes howard hughes hunt jackson jensen johnson jones keller kelley kennedy king lane long lopez marsh martinez mathews matthews mcdonald miller mitchell moore morgan morris nelson newton obrien oconnor olsen palmer parker patterson peck perkins perry peterson phillips powell price randolph reed rice richardson rivera rivers roberts robinson rodrigues rodriguez rogers romero ruis sanders santos shaw short silva simpson smith snyder spafford spencer springer stafford stewart&lt;adapter&gt; Tcl: stone sullivan taylor thompson turner walker wallace walton ward warner watson weber wells white williams wong wood woods wright young {}</code></pre></div>The first and last elements are empty (null), as the same for all lists. Hence to remove those I use:<br><div class="codebox"><p>Code: </p><pre><code>set idlist [lrange [split $idfile "\n"] 1 end-1]</code></pre></div><span style="color:red"><em class="text-italics">*** Edited, fixed and uploaded script</em></span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 13, 2007 2:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-08-12T18:42:16-04:00</updated>

		<published>2007-08-12T18:42:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75221#p75221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75221#p75221"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75221#p75221"><![CDATA[
You're applying [split] on a list again.<div class="codebox"><p>Code: </p><pre><code>set idlist [split [lrange [split $idfile "\n"] 1 end-1]]</code></pre></div>idfile is already a list in your script so this should be enough:<div class="codebox"><p>Code: </p><pre><code>set idlist [lrange $idfile 1 end-1]</code></pre></div>although I don't know why you're doing this (not considering the first and last elements). Same with fnfile (it's also already a list).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Aug 12, 2007 6:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-21T21:52:38-04:00</updated>

		<published>2007-08-10T08:16:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75175#p75175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75175#p75175"/>
		<title type="html"><![CDATA[echoX Remover v1.32.b by awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75175#p75175"><![CDATA[
I have test released a script which removes <em class="text-italics">"the famous"</em> <strong class="text-strong">echox inviter</strong> from channels. This script is currently being tested, so far so it works great as for now.<br><br>I haven't gotten time to add any features into it yet. <br><blockquote class="uncited"><div>This script will work on all channels the bot is on. It will WHO every user on join and check the who reply to match with certain criterias to be detected as an echox inviter. This script will kick and ban any echox inviters which join any channel the bot is opped on. </div></blockquote>Give it a go! If you feel there are alot of echox inviters on your channel.<br><br>Here's an example:<blockquote class="uncited"><div>* jorrie (~dickinson@203.106.196.249) has joined #awyeah<br>* Eric32_kl (~<a href="mailto:eric36_kl@110.249.95.219.klj01-home.tm.net.my">eric36_kl@110.249.95.219.klj01-home.tm.net.my</a>) has left #awyeah<br>* adapter sets mode: +b *!*@203.106.196.249<br>* jorrie was kicked by adapter ( echoX Inviter Kick  - You are no doubt smart in spamming and adversiting echoX Inviter, but we are more smarter. Copyright © 2007 awyeah Inc. All rights reserved.)<br><br>*** After kicking and banning the user if you check the following..<br><br><em class="text-italics">on /whois:</em><br>jorrie No such nick/channel<br>jorrie End of /WHOIS list.<br><br><em class="text-italics">on /whowas:</em><br>jorrie was ~dickinson@203.106.196.249 * Francesc Kassower<br>jorrie using redemption.ix.us.dal.net Fri Aug 10 08:47:27 2007<br>End of WHOWAS</div></blockquote>Download this script from the link below:<br><strong class="text-strong"><a href="http://channels.dal.net/awyeah/scripts/echoxremover.tcl" class="postlink">echoX Remover v1.32.b</a></strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Aug 10, 2007 8:16 am</p><hr />
]]></content>
	</entry>
	</feed>
