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

	<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>2007-06-04T08:48:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Freakazoid]]></name></author>
		<updated>2007-06-04T08:48:41-04:00</updated>

		<published>2007-06-04T08:48:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73271#p73271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73271#p73271"/>
		<title type="html"><![CDATA[auto post advert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73271#p73271"><![CDATA[
i lost a line in the code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br>now it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>&lt;&lt;&lt; pinky is <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>from pinky and the brain<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6546">Freakazoid</a> — Mon Jun 04, 2007 8:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Freakazoid]]></name></author>
		<updated>2007-05-27T21:13:09-04:00</updated>

		<published>2007-05-27T21:13:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73082#p73082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73082#p73082"/>
		<title type="html"><![CDATA[auto post advert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73082#p73082"><![CDATA[
oki !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6546">Freakazoid</a> — Sun May 27, 2007 9:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-27T18:44:04-04:00</updated>

		<published>2007-05-27T18:44:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73066#p73066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73066#p73066"/>
		<title type="html"><![CDATA[auto post advert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73066#p73066"><![CDATA[
Properly indenting the code would reveal that you don't call either timer or utimer within the proc, you also do not use the "time" binding..<br>Obviously, you will only execute "go" once...<br><br>Most likely, you've misunderstood the use of timer and utimer...<br>These allow you to delay the execution of some code, it will not repeat the execution multiple times...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun May 27, 2007 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Freakazoid]]></name></author>
		<updated>2007-05-27T15:20:47-04:00</updated>

		<published>2007-05-27T15:20:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73061#p73061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73061#p73061"/>
		<title type="html"><![CDATA[auto post advert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73061#p73061"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>variable sqlvariable libMySQLTcl "/usr/local/lib/mysqltcl-3.03/libmysqltcl3.03.so" # SQL infoset sql(host) "localhost"set sql(user) ""set sql(pass) ""set sql(db) ""set sql(port) ""## END CONF ##set channel "#eTicker"set time 30if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }proc go {} {    global sql libMySQLTcl   set sql(handle) [mysqlconnect -host $sql(host) -user $sql(user) -password $sql(pass) -db $sql(db) -port $sql(port)]   set query [::mysql::query $sql(handle) "SELECT werbung FROM advert ORDER BY DESC LIMIT 1 "]   while {[set row [::mysql::fetch $query]] != ""} {   set werbung [lindex $row 0] global channel time text timerforeach chan $channel { putserv "PRIVMSG $chan :$werbung"  }   }::mysql::endquery $querymysqlclose $sql(handle)}if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }</code></pre></div> <br>why does work this script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>1 time it will be work after rehash no more function from it<br><br><br>mfg freak<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6546">Freakazoid</a> — Sun May 27, 2007 3:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
