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

	<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>2010-12-15T08:03:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2010-12-15T08:03:35-04:00</updated>

		<published>2010-12-15T08:03:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95367#p95367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95367#p95367"/>
		<title type="html"><![CDATA[Problem with getchanidle in combination with aidle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95367#p95367"><![CDATA[
Thank you.<br>I've combined my script with a RAW 319 binding to check the 'complete' idle time. It's now working exactly as I planned <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Wed Dec 15, 2010 8:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-12-11T10:16:46-04:00</updated>

		<published>2010-12-11T10:16:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95309#p95309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95309#p95309"/>
		<title type="html"><![CDATA[Problem with getchanidle in combination with aidle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95309#p95309"><![CDATA[
Well, as you've already noticed, the getchanidle is not related to any WHOIS-info, but merely the difference of the time when the bot last saw any actions from the user, and "now". Thus, as it joins, that point in time becomes the last known time of activity.<br>WHOIS on the other hand, does not provide channel-specific timestamps, but merely when the user sent any kind of actions. Further, some (most?) networks only send the last action data for local clients, requiring remote server lookups. Add to that, the fact that WHOIS-lokups are generally more expensive than NAMES or WHO (which fetch a set of channel members rather than one nickname at a time), and it becomes rather obvious why eggdrop don't use WHOIS-timestamps for the getchanidle command.<br><br>To implement your own solution, you'd have to issue the proper whois-command, and catch the result using raw-bindings (sorry, don't remember the actual codes right now, but you'll find them in rfc1459 and the later updates).<br><br>Edit: Had the wrong rfc-document: 1459 is the correct one.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Dec 11, 2010 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2010-12-10T20:37:41-04:00</updated>

		<published>2010-12-10T20:37:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95304#p95304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95304#p95304"/>
		<title type="html"><![CDATA[Problem with getchanidle in combination with aidle.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95304#p95304"><![CDATA[
Hi all,<br><br>I am trying to use the aidle.tcl script.<br>So I set the maxidle to 2 hours...so after 2 hours of idle time of the user in the channel, the user should be kicked.<br><br>But it's not working the way I supposed to.<br>It seems that the getchanidle is not the same as the WHOIS $nick $nick.<br><br>When I restart the bot, the getchanidle timer get's set to 0.<br>But at the same time, when I check the idle time of a user in my IRC client it says the user is idle for 2hr, 1m, 45s.<br><br>So for the script to be affective, the bot should never be restarted...and if it was restarted...it would take up to two hours to build up his own timer and then start kicking, while in that 2 hours...a user could be already idle for more than 2 hours (as seen in the IRC client)<br><br>I bet I'm not the first to run into this problem. Could someone tell me how to solve this?<br><br>Thx.<br>Chris<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Fri Dec 10, 2010 8:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
