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

	<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-05-27T15:44:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-27T15:44:14-04:00</updated>

		<published>2004-05-27T15:44:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36646#p36646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36646#p36646"/>
		<title type="html"><![CDATA[Wracking my little brain...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36646#p36646"><![CDATA[
Hi,<br><br>Many thanks for the help.  There is much good karma coming in your direction. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>No problems with 'end', I'm using the right version TCL.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><blockquote class="uncited"><div>Well one method is you can just use .+ban *!*#@* 10 times, where # is 0 to 9 of course.... </div></blockquote>Ummm... I did have that which is why I wrote the script. LOL  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu May 27, 2004 3:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-27T02:45:47-04:00</updated>

		<published>2004-05-27T02:45:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36629#p36629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36629#p36629"/>
		<title type="html"><![CDATA[Wracking my little brain...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36629#p36629"><![CDATA[
Again, depending on your Tcl version, 'end' may be an invalid argument for string index, yielding the error:<br><blockquote class="uncited"><div>expected integer but got "end"</div></blockquote>To ensure compatibility, see the commented code in my previous post.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu May 27, 2004 2:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-05-27T02:26:21-04:00</updated>

		<published>2004-05-27T02:26:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36628#p36628</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36628#p36628"/>
		<title type="html"><![CDATA[Wracking my little brain...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36628#p36628"><![CDATA[
or use [string index $ident end] <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=282">egghead</a> — Thu May 27, 2004 2:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-27T02:16:41-04:00</updated>

		<published>2004-05-27T02:16:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36626#p36626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36626#p36626"/>
		<title type="html"><![CDATA[Wracking my little brain...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36626#p36626"><![CDATA[
Well one method is you can just use .+ban *!*#@* 10 times, where # is 0 to 9 of course....<br><br>Via Tcl however...<br><br>Assuming you have a userhost in say variable $uhost of the form &lt;ident&gt;@&lt;host&gt; ...<br><div class="codebox"><p>Code: </p><pre><code>set ident [lindex [split $uhost @] 0]# replace with newchanban or whatnot...putserv "MODE #chan +b *!*[string range $ident end end]@*"# 'end end' may be invalid arguments depending on your Tcl Version,# so you may need to use:# *!*[string index $ident [expr {[string length $ident] - 1}]]@*</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu May 27, 2004 2:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-27T01:21:03-04:00</updated>

		<published>2004-05-27T01:21:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36624#p36624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36624#p36624"/>
		<title type="html"><![CDATA[Wracking my little brain...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36624#p36624"><![CDATA[
Hi,<br><br>My problem (with TCL of course) is probaby so simple to solve but, in my current brain dead state it's beyond me; and after hours of searching and experimenting.<br><br>I have written a nifty little script that bans all users entering a channel with numerical idents (~stw52890@ for example), instead of doing the conventional ban I just want to ban the last digit ie. *!*0@* no matter what that digit is.  Can any one help one brain dead user? <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=3646">Alchera</a> — Thu May 27, 2004 1:21 am</p><hr />
]]></content>
	</entry>
	</feed>
