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

	<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-07-18T22:19:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-18T22:19:58-04:00</updated>

		<published>2003-07-18T22:19:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23656#p23656</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23656#p23656"/>
		<title type="html"><![CDATA[Timer vs. Rehash Question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23656#p23656"><![CDATA[
Like the error says, you're using the wrong number of arguments. Look in tcl-commands.doc for information on how time bind procs should be made.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Jul 18, 2003 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-18T18:29:31-04:00</updated>

		<published>2003-07-18T18:29:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23653#p23653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23653#p23653"/>
		<title type="html"><![CDATA[Timer vs. Rehash Question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23653#p23653"><![CDATA[
I wrote a little coding here to have the bot execute the proc based upon a timer.  When I execute the code using a <em class="text-italics">bind evnt - rehash check_channels</em>, the code executes properly.  But when I set the timer to run the code, I get a <em class="text-italics">Tcl error [check_channels_timed]: wrong # args: should be "check_channels_timed"</em> error.<br><br>What am I doing wrong with the timer (or code) to cause this?<br><div class="codebox"><p>Code: </p><pre><code>set chan_invite "#invite"set chan_listen "#listen"set services_name "ChanServ"proc check_channels_timed {chan} {  #Setup some parameters  global chan_listen chan_invite botnick services_name  #Check to see if the bot is in the invite channel  if (![botonchan $chan_invite]) {     putlog "$chan_invite - I am not in $chan_invite.  Changing channel settings to attempt entry."     channel set $chan_invite -inactive     putserv "$services_name invite $chan_invite $botnick"     return 0  }  #Check to see if the bot is in the listen channel  if (![botonchan $chan_listen]) {     putlog "$chan_listen - I am not in $chan_listen.  Changing channel settings to attempt entry."     channel set $chan_listen -inactive     return 0  }}bind time - "?? * * * *" check_channels_timed</code></pre></div><p>Statistics: Posted by Guest — Fri Jul 18, 2003 6:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
