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

	<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-12-05T11:03:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-05T11:03:26-04:00</updated>

		<published>2003-12-05T11:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31105#p31105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31105#p31105"/>
		<title type="html"><![CDATA[IDX idle check up]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31105#p31105"><![CDATA[
i know now tnx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> makes sence .. hehe but didn't realize at the time being .. but tnx for the info makes a lot of sence why it would freeze<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Dec 05, 2003 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-05T10:43:17-04:00</updated>

		<published>2003-12-05T10:43:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31104#p31104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31104#p31104"/>
		<title type="html"><![CDATA[IDX idle check up]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31104#p31104"><![CDATA[
<blockquote class="uncited"><div>hmm u mean liek utimer or something just initiate a timer to call up on the procedure and not use after to do so</div></blockquote>The way you're using after in your proc is not comparable to using utimer. Calling after with one argument makes it block (halt all execution) at that point for the given number of milliseconds.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Dec 05, 2003 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-05T10:37:53-04:00</updated>

		<published>2003-12-05T10:37:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31103#p31103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31103#p31103"/>
		<title type="html"><![CDATA[IDX idle check up]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31103#p31103"><![CDATA[
hmm u mean liek utimer or something just initiate a timer to call up on the procedure and not use after to do so<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Dec 05, 2003 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-12-04T23:59:26-04:00</updated>

		<published>2003-12-04T23:59:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31086#p31086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31086#p31086"/>
		<title type="html"><![CDATA[IDX idle check up]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31086#p31086"><![CDATA[
Nobody said to use a while loop heh. All you have to do is change your call to after so that it calls the proc after 5 seconds asynchronously (i.e. not blocking for 5 seconds). Look it up in the tcl manual.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Dec 04, 2003 11:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-04T20:33:08-04:00</updated>

		<published>2003-12-04T20:33:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31083#p31083</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31083#p31083"/>
		<title type="html"><![CDATA[IDX idle check up]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31083#p31083"><![CDATA[
hmm what about the getdccidle ..? and how could i solve this problem .. most efficiently ?? i don't think using a while loop would be wize ..?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Dec 04, 2003 8:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-04T19:19:07-04:00</updated>

		<published>2003-12-04T19:19:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31082#p31082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31082#p31082"/>
		<title type="html"><![CDATA[IDX idle check up]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31082#p31082"><![CDATA[
I don't have time to explain how the world works, so here's the short version: Your eggdrop can't do anything else while waiting for your proc to return, so nothing else happens while you're waiting for the after to expire. You'll have to use an async method to do that second check. (timer/after(with 2 arguments)/time bind)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Dec 04, 2003 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-04T15:31:43-04:00</updated>

		<published>2003-12-04T15:31:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31069#p31069</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31069#p31069"/>
		<title type="html"><![CDATA[IDX idle check up]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31069#p31069"><![CDATA[
when i open a socket i wana checkup idx after if its idle .. but it seems that everytime i checkup the idx it always gets the same idle time .. from what it started .. how is that so if i trigger the event (this proc kicks in few seconds later don't know why the delay tho but then it gets an idle time from euhm arround .. 8 - 13 seconds but once it has this idle time the idle time keeps the same like its on a keep alive or something ...  if the first idel time = 8 seonds it always will be 8 seconds .. , if the idle time = 13 seconds it always remains 13 seconds .. ? ?<br><div class="codebox"><p>Code: </p><pre><code>proc idxidlecheck {idx} {  if {[valididx $idx]} {     if {[getdccidle $idx] &gt; 60} {      killdcc $idx    }    after 5000    idxidlecheck $idx  } elseif {![valididx $idx]} {   return 0  }}</code></pre></div><br>also this loop bloks the script some how it freezes up i use the same time checkup interval to tail a file and it seems to work there so i wonder why it doesn't work here ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Dec 04, 2003 3:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
