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

	<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-10-06T14:21:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-06T10:20:07-04:00</updated>

		<published>2003-10-06T10:20:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28029#p28029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28029#p28029"/>
		<title type="html"><![CDATA[return a value in a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28029#p28029"><![CDATA[
thanks ppslim and Sir Fz   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 06, 2003 10:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-06T14:21:55-04:00</updated>

		<published>2003-10-06T09:34:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28026#p28026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28026#p28026"/>
		<title type="html"><![CDATA[return a value in a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28026#p28026"><![CDATA[
try <div class="codebox"><p>Code: </p><pre><code>timer $voice_ban_time [list unset voice_ban([lindex [split $av_temp @] end])]</code></pre></div><em class="text-italics"><strong class="text-strong">edit</strong>: Sorry, ppslim was faster in reply</em> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Oct 06, 2003 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-10-06T09:30:31-04:00</updated>

		<published>2003-10-06T09:30:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28025#p28025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28025#p28025"/>
		<title type="html"><![CDATA[return a value in a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28025#p28025"><![CDATA[
This is because your timer command is surounded in brackets.<br><br>These brackets delay the parsing of the linud command until the timer triggers.<br><br>Somthing like this will fix it<br><div class="codebox"><p>Code: </p><pre><code>timer $voice_ban_time [list unset voice_ban([lindex [split $av_temp @] end])]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 06, 2003 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-06T09:08:10-04:00</updated>

		<published>2003-10-06T09:08:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28022#p28022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28022#p28022"/>
		<title type="html"><![CDATA[return a value in a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28022#p28022"><![CDATA[
I have a problem with eggdrop setting a value in a timed event.<br>the below works fine until the timer times out and tries to<br>unset the var. it can not find the value of "$av_temp"<br>I just want to unset the varaible.<br><br>&lt;Zia&gt; [07:54] Tcl error in script for 'timer49':<br>&lt;Zia&gt; [07:54] can't read "av_temp": no such variable<br><br>Any ideas?<br><div class="codebox"><p>Code: </p><pre><code>set voice_ban_time 7proc voice:cntrl {stuff} {  global botnick stuff   set av_temp [getchanhost $victim $chan]  set voice_ban([lindex [split $av_temp @] end]) 1  timer $voice_ban_time {unset voice_ban([lindex [split $av_temp @] end])}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 06, 2003 9:08 am</p><hr />
]]></content>
	</entry>
	</feed>
