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

	<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-11-15T15:55:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-15T15:55:30-04:00</updated>

		<published>2003-11-15T15:55:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30061#p30061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30061#p30061"/>
		<title type="html"><![CDATA[no such element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30061#p30061"><![CDATA[
i am still getting errors  ...<br>these errors only occur when there<br>is a  "~" in the address.<br>the error happens when the script<br>tries to unset the var<br><br>The var does not include the "~"<br>i can not see why it would even matter.<br><br>It should either set and unset or not<br>set them both.<br><div class="codebox"><p>Code: </p><pre><code>bind mode -|- "* -v" voice:cntrlproc voice:cntrl {nick uhost handle channel mode victim} {  global botnick av_ctr av_ban av_ban_time  set chan [string tolower $channel]  set av_temp [getchanhost $victim $chan]  regsub -all -- {\~} $av_temp "" av_temp  set av_ban([lindex [split $av_temp @] end]) 1  timer $av_ban_time [list unset av_ban([lindex [split $av_temp @] end])]}</code></pre></div>thanks for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sat Nov 15, 2003 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2003-11-14T05:01:51-04:00</updated>

		<published>2003-11-14T05:01:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29974#p29974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29974#p29974"/>
		<title type="html"><![CDATA[no such element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29974#p29974"><![CDATA[
Dedan said <blockquote class="uncited"><div>i only get this error when a "~" is in the address. </div></blockquote>Are you filtering out the uneeded characters such as the "~" ?<br>If not, then try the following line of code which has been taken from Slennox's sentinel script (but of course change it to adapt the variables to your script):<div class="codebox"><p>Code: </p><pre><code>set uhost [string trimleft [getchanhost $nick $chan] "~+-^="]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Fri Nov 14, 2003 5:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-14T03:29:12-04:00</updated>

		<published>2003-11-14T03:29:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29969#p29969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29969#p29969"/>
		<title type="html"><![CDATA[no such element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29969#p29969"><![CDATA[
Is there a "global av_ban" in the part where you say "usual stuff here"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Nov 14, 2003 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-13T19:59:33-04:00</updated>

		<published>2003-11-13T19:59:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29964#p29964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29964#p29964"/>
		<title type="html"><![CDATA[no such element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29964#p29964"><![CDATA[
still shows an error<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Thu Nov 13, 2003 7:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-11-13T19:54:26-04:00</updated>

		<published>2003-11-13T19:54:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29963#p29963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29963#p29963"/>
		<title type="html"><![CDATA[no such element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29963#p29963"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set av_ban([lindex [split $av_temp @] end]) 1   timer $av_ban_time [list unset av_ban([lindex [split $av_temp @] end])] </code></pre></div>should be:<div class="codebox"><p>Code: </p><pre><code>set av_ban([lindex [split $av_temp @] 1]) 1   timer $av_ban_time [list unset av_ban([lindex [split $av_temp @] 1])] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Nov 13, 2003 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-13T19:21:52-04:00</updated>

		<published>2003-11-13T19:21:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29962#p29962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29962#p29962"/>
		<title type="html"><![CDATA[no such element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29962#p29962"><![CDATA[
i only get this error when a "~" is in the address.<br>i do not know why.<br><br>&lt;Zip&gt; [16:51] Tcl error in script for 'timer2555':<br>&lt;Zip&gt; [16:51] can't unset "av_ban(c-65-177-226-17.se.client2.attbi.com)": no such element in array<br><br>[join]<br>-&gt; speakerJh (~<a href="mailto:spea@c-65-177-226-17.se.client2.attbi.com">spea@c-65-177-226-17.se.client2.attbi.com</a>)<br><br><div class="codebox"><p>Code: </p><pre><code>bind mode -|- "* -v" voice:cntrlproc voice:cntrl {nick uhost handle channel mode victim} {  usual stuff here  set av_temp [getchanhost $victim $chan]  set av_ban([lindex [split $av_temp @] end]) 1  timer $av_ban_time [list unset av_ban([lindex [split $av_temp @] end])] </code></pre></div>thanks for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Thu Nov 13, 2003 7:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
