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

	<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>2011-12-17T22:20:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[desired]]></name></author>
		<updated>2011-12-17T22:19:35-04:00</updated>

		<published>2011-12-17T22:19:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98407#p98407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98407#p98407"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98407#p98407"><![CDATA[
I mean 1.8. Sorry!<br><br>(used this: <a href="http://www.eggheads.org/devel/" class="postlink">http://www.eggheads.org/devel/</a>)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11786">desired</a> — Sat Dec 17, 2011 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2011-12-17T13:37:35-04:00</updated>

		<published>2011-12-17T13:37:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98404#p98404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98404#p98404"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98404#p98404"><![CDATA[
<blockquote class="uncited"><div>I am on 1.9.</div></blockquote>Really??!<br>Did you miss the memo??!<br><br>1.9 is dead. Has a fork sticking out of it. Why are you using it?<br><br>Try 1.6.21 or 1.8 .. These at least are still in development.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Dec 17, 2011 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[desired]]></name></author>
		<updated>2011-12-17T22:20:11-04:00</updated>

		<published>2011-12-17T04:33:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98402#p98402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98402#p98402"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98402#p98402"><![CDATA[
EDIT:<br>I am on 1.8.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11786">desired</a> — Sat Dec 17, 2011 4:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-12-16T16:24:17-04:00</updated>

		<published>2011-12-16T16:24:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98400#p98400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98400#p98400"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98400#p98400"><![CDATA[
Unfortunately, that code will not cause the described behavior on a 1.6.21 eggdrop I just tested it on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Dec 16, 2011 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[desired]]></name></author>
		<updated>2011-12-15T03:33:02-04:00</updated>

		<published>2011-12-15T03:33:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98391#p98391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98391#p98391"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98391#p98391"><![CDATA[
Thanks for all your help.<br><br>Ok, I was able to reproduce it. Here is a script which I wrote to show you the error. It has been tested and hopefully I did not mess up and you can reproduce it.<br><div class="codebox"><p>Code: </p><pre><code>proc isutimer_ { id } {foreach utimer [utimers] {set isid [lindex $utimer 2]if { $id == $isid } {return 1}}return 0}bind dcc nm|- test test_dccproc test_dcc { args } {putlog "test_dcc::: utimers: [utimers]"putlog "test_dcc::: isutimer $::re_utimer: [isutimer_ $::re_utimer]"utimer 1 [list test_dcc_show]}proc test_dcc_show { } {putlog "test_dcc_show::: utimers: [utimers]"putlog "test_dcc_show::: isutimer $::re_utimer: [isutimer_ $::re_utimer]"}proc test_re { } {putlog "test_re ..."set ::re_utimer [utimer 10 [list test_re]]}if { ! [info exists ::re_started] } {set ::re_started 1test_re}</code></pre></div>Results:<br>test_dcc will show everything correctly but test_dcc_how will not know anything about utimers anymore...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11786">desired</a> — Thu Dec 15, 2011 3:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-12-10T20:58:03-04:00</updated>

		<published>2011-12-10T20:58:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98382#p98382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98382#p98382"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98382#p98382"><![CDATA[
<blockquote class="uncited"><div>...<br>For that piece of code to work as expected, one should NOT use square brackets.<br>...</div></blockquote><br>Ok.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Dec 10, 2011 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-12-10T16:27:34-04:00</updated>

		<published>2011-12-10T16:27:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98381#p98381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98381#p98381"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98381#p98381"><![CDATA[
desired,<br>this sounds like a bug to me. However, I am not able to reproduce it myself. What kind of binding did you use?<br><br>As for uplevel, the context of where utimers is invoked should not matter, as timers are always stored and accessed on a global scope.<br><br>willyw,<br>For that piece of code to work as expected, one should NOT use square brackets. The idea is for the code block to be evaluated at a different context than the current - which is why we do not want any command substitutions done in the current context.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Dec 10, 2011 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-12-10T14:39:23-04:00</updated>

		<published>2011-12-10T14:39:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98380#p98380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98380#p98380"/>
		<title type="html"><![CDATA[Re: utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98380#p98380"><![CDATA[
<blockquote class="uncited"><div>...<br>I also testet set utimers [uplevel #0 { utimers }], still didn't work.<br>...</div></blockquote>Have you tried it with square brackets?<br>i.e.     [utimers]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Dec 10, 2011 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-12-10T14:37:44-04:00</updated>

		<published>2011-12-10T14:37:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98379#p98379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98379#p98379"/>
		<title type="html"><![CDATA[Re: utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98379#p98379"><![CDATA[
Can you post your script so we can see it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Dec 10, 2011 2:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[desired]]></name></author>
		<updated>2011-12-10T13:48:09-04:00</updated>

		<published>2011-12-10T13:48:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98378#p98378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98378#p98378"/>
		<title type="html"><![CDATA[utimers returns nothing?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98378#p98378"><![CDATA[
utimers when called with .tcl partyline it shows a list with all utimers.<br><br>But when I call utimers from another proc which gets invoked by a bind it returns always nothing. Even when there are still utimers (which I see, I tested to type .tcl utimers on partyline again).<br><br>Why is that?<br><br>I also testet set utimers [uplevel #0 { utimers }], still didn't work.<br><br>How can I get them?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11786">desired</a> — Sat Dec 10, 2011 1:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
