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

	<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>2006-01-28T20:34:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-28T20:34:12-04:00</updated>

		<published>2006-01-28T20:34:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59875#p59875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59875#p59875"/>
		<title type="html"><![CDATA[help with syntax of timer/utimer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59875#p59875"><![CDATA[
that should <strong class="text-strong">not</strong> be done by timer - you never know how long it would take to resync after join - typically it's about 2-3 secs, but it might be 5, 10 or more; generally, nothing bound to irc dynamics should be done by timer - irc is event-driven system, and timers in eggdrop really do have very few sane uses<br><br>instead, bind to raw 315 (End of /WHO List) - upon entering a channel, eggdrop issues <em class="text-italics">WHO #chan</em> command and subsequently receiving 315 means resync has been completed and the bot now has its [chanlist] properly constructed<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jan 28, 2006 8:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2006-01-28T20:10:08-04:00</updated>

		<published>2006-01-28T20:10:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59873#p59873</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59873#p59873"/>
		<title type="html"><![CDATA[help with syntax of timer/utimer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59873#p59873"><![CDATA[
I am using a JOIN bind to initiate a scan of the users in a specific IRC channel when it is the bot itself that joins the channel. However, the bot has not had chance to update [chanlist $chan] which returns botnick only, irrespective of who else is on the channel. So I wish to use a utimer to allow the bot time to update the channel list before attempting a scan.<br><br>The proc npScan requiring a single argument $chan is called to execute the scan.<br><br>utimer 10 [npScan $chan] ... works but executes the scan immediately rather than after the expected 10 seconds ... so only the botnick is in the channel list<br><br>utimer 10 [list npScan $chan] ...  gives a tcl error in script for 'timerXX' - invalid command name npScan<br><br>utimer 10 {npScan $chan} ... gives a tcl error in script for 'timerXX' - can't read "chan"; no such variable<br><br>I can only assume that calling a proc rather than invoking a recognised tcl command in the utimer statement is the cause of the problem. I can't find the correct syntax (assuming it's possible). Any help would be appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sat Jan 28, 2006 8:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
