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

	<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>2004-02-21T22:14:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-02-21T22:14:38-04:00</updated>

		<published>2004-02-21T22:14:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33836#p33836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33836#p33836"/>
		<title type="html"><![CDATA[Timer wont go on]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33836#p33836"><![CDATA[
timer only calls a proc once.. It is not like mirc's timer command.<br><br>To have a proc repeatedly called you need to have the proc use a timer call on itself, something like:<br><div class="codebox"><p>Code: </p><pre><code>timer 5 yourprocproc yourproc {} { ... timer 5 yourproc}</code></pre></div>Also, to prevent multiple timers from calling the proc on rehash, you should change the first timer call to something like:<div class="codebox"><p>Code: </p><pre><code>if {![info exists yourtimercheck]} {  set yourtimercheck [timer 5 yourproc]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Feb 21, 2004 10:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[exs-n0s]]></name></author>
		<updated>2004-02-21T21:05:57-04:00</updated>

		<published>2004-02-21T21:05:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33835#p33835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33835#p33835"/>
		<title type="html"><![CDATA[Timer wont go on]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33835#p33835"><![CDATA[
#The script checks the mysql db every 5 minutes.  The problem is that the script only checks the db after I rehash the bot.  But afterwards, it doesnt parse anymore, unless you rehash the bot.  For some odd reason, the timer doesn't work.  Some help would be appreciated.  Thanks<br><div class="codebox"><p>Code: </p><pre><code>set debug 0set ver "1.1"set dbhost "_host_"set dbuser "_user_"set dbpass "_pass_"set dbname "_name_"set timeoff 1141set date [clock seconds]set estdate [expr $date - $timeoff]set lastdate [expr $estdate - 3600]timer 5 checkdbproc checkdb { } {global dbhost dbuser dbpass dbname ver debug lastdateset dbconnect [mysqlconnect -host $dbhost -user $dbuser -password $dbpass]mysqluse $dbconnect $dbnameif { [mysqlstate $dbconnect -numeric] == 0 } {putlog "Could not connect to $dbhost (Unlooping script) -- Forum IRC Notifier $ver"mysqlclose $dbconnectreturn 0} else {if { $debug == 1 } {putlog "Connected to $dbhost -- Forum IRC Notifier $ver"}putlog "#Topic Report# Parsing"set sql "SELECT * FROM ibf_topics WHERE start_date &gt; $lastdate ORDER BY start_date DESC"set numrows [mysqlsel $dbconnect $sql]if { $numrows != 0 } {for { set i 0 } { $i &lt; $numrows } { incr i } {set res [mysqlnext $dbconnect]set topicid [lindex $res 0]set topic [lindex $res 1]set poster [lindex $res 10]set lastdate [lindex $res 6]set link "http://www.teamexcess.net/forums/index.php?showtopic=$topicid"putserv "PRIVMSG #excess :\002New Excess.ca Forum Post:\002 $topic"putserv "PRIVMSG #excess :\002Link:\002 $link - \002By:\002 $poster"}}mysqlclose $dbconnectreturn 0}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4596">exs-n0s</a> — Sat Feb 21, 2004 9:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
