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

	<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-02-24T20:47:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-02-24T20:47:54-04:00</updated>

		<published>2003-02-24T20:47:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17025#p17025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17025#p17025"/>
		<title type="html"><![CDATA[GLOBAL idle time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17025#p17025"><![CDATA[
Theres a script called onlinetime.tcl that upon a trigger will strip a users idle time/online time from info it gains with a .whois nick nick.<br>Maybe a read of that one would help you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Mon Feb 24, 2003 8:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-22T15:14:08-04:00</updated>

		<published>2003-02-22T15:14:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16939#p16939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16939#p16939"/>
		<title type="html"><![CDATA[GLOBAL idle time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16939#p16939"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc getlowidle {nick} {  set idle 999999  foreach chan [channels] {    if {([set t [getchanidle $nick $chan]] &lt; $idle)  &amp;&amp; [getchanidle $nick $chan] != 0)} {  set idle $t }  }  return $idle}</code></pre></div>There is a quick jimmy of code that will look at each channel, and work out the users lowest idle time.<br><br>It uses a fake 999999 idle time, to start the countdown. While not likely, if there idle time is greater, then the fake 999999 is returned, plus, if they are not on any channels the bot monitors, it will also return 999999.<br><br>There are far more smarter ways to do this, including working out the highest idle time, then the lowest (produces a better base idle time), returning -1 if the user isn't on channels.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Feb 22, 2003 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesp0tter]]></name></author>
		<updated>2003-02-22T15:01:45-04:00</updated>

		<published>2003-02-22T15:01:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16934#p16934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16934#p16934"/>
		<title type="html"><![CDATA[GLOBAL idle time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16934#p16934"><![CDATA[
hum tks!<br>that won't do for what i need, i can't be whois'ing 60+ people each minute to get their idle.. i'll keep it as chan idle.<br><br>i didn't know 'bout that 2 nick trick.. ehe, tks 4 your reply :p []<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2614">jamesp0tter</a> — Sat Feb 22, 2003 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-22T15:00:49-04:00</updated>

		<published>2003-02-22T15:00:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16933#p16933</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16933#p16933"/>
		<title type="html"><![CDATA[GLOBAL idle time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16933#p16933"><![CDATA[
From RFC 1459:<br><br>WHOIS &lt;nick&gt; - This is a local request. Only the information cached on the server this is sent to, will return data.<br><br>WHOIS &lt;nick&gt; &lt;nick&gt; - This is a remote request. This request will traverse IRC server, until it reaches the server, on which &lt;nick&gt; is connected. This server will send the reply with it's cached data.<br><br>Only the server on which &lt;nick&gt; is connected, caches IDLE time information.<br><br>Eggdrops getchanidle is done using a internal caching functions. It works out when the last time &lt;nick&gt; performed a action. AT no point, does eggdrop make a request for such information from the IRC server.<br><br>To extract global information like idle time, from the server, you will need to make a script, that requests the WHOIS information, and extracts the details from the reply.<br><br>This can only be done in an asycronous way. Meaning you can't pause in a script, until you get the reply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Feb 22, 2003 3:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-20T20:42:04-04:00</updated>

		<published>2003-02-20T20:42:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16850#p16850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16850#p16850"/>
		<title type="html"><![CDATA[GLOBAL idle time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16850#p16850"><![CDATA[
Usually you can type "/whois somenick somenick" (twice like that) and then it shows you the idle time. If that doesn't work, then you're out of luck I think.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Feb 20, 2003 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesp0tter]]></name></author>
		<updated>2003-02-20T19:07:19-04:00</updated>

		<published>2003-02-20T19:07:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16847#p16847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16847#p16847"/>
		<title type="html"><![CDATA[GLOBAL idle time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16847#p16847"><![CDATA[
well, how do i get that exactly?<br>too bad 'getchanidle' only workz 4 messages for that chan, i need it to get the global idle, the one that appears when you whois the nick..<br>as (in my irc network) that kind of info only appears if you're connected in the same server as the 'whoised', what doesn't really happen at all &amp; i need it always <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><br><br>any way to do this or am i just asking too much? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>tkx in advance<br><br>**P.S: yes, i did search the forum, lots of times.. if i missed 'it' pls reply with the link <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> tkx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2614">jamesp0tter</a> — Thu Feb 20, 2003 7:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
