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

	<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-07-27T15:00:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[benzon]]></name></author>
		<updated>2004-07-27T14:58:53-04:00</updated>

		<published>2004-07-27T14:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39136#p39136</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39136#p39136"/>
		<title type="html"><![CDATA[Wird error plz help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39136#p39136"><![CDATA[
changed my mysql password hehe daaamn don´t poste that hehehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4808">benzon</a> — Tue Jul 27, 2004 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[benzon]]></name></author>
		<updated>2004-07-27T15:00:36-04:00</updated>

		<published>2004-07-27T14:50:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39135#p39135</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39135#p39135"/>
		<title type="html"><![CDATA[Wird error plz help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39135#p39135"><![CDATA[
<blockquote class="uncited"><div>#Mysql Info<br>set mysql(host) "*"<br>set mysql(port) "*"<br>set mysql(user) "*"<br>set mysql(pass) "*"<br>set mysql(datae) "*"<br>set mysql(vers) "2.30"<br>package require mysqltcl $mysql(vers)<br><br>#Timer afgøre hvor tit reklamen bliver skrevet sat til 30 min standart<br>set time 1<br><br>#Det anbefales ikke at ændre noget under denne linie<br>setudef flag softad<br><br>if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }<br>if {[lsearch -glob [utimers] "* gos *"] == -1} { utimer $timer gos }<br><br>proc gos {} {<br>global mysql channel time timer<br>foreach chan [channels] {<br>if {[lsearch -exact [channel info $chan] +softad] &gt; -1} {<br>set mysql(conn) [mysqlconnect -host $mysql(host) -port $mysql(port) -user $mysql(user) -password $mysql(pass)]<br>mysqluse $mysql(conn) $mysql(datae)<br>if {[string equal -nocase $chan "#Icemat"]} {<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM softad where ad LIKE '%Icemat%' ORDER BY RAND() LIMIT 1;" -list] {<br>putserv "PRIVMSG $chan :[lindex $query 1] "<br>}<br>} else {<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM softad ORDER BY RAND() LIMIT 1;" -list] {<br>putserv "PRIVMSG $chan :[lindex $query 1] "<br>}<br>}<br>}<br>}<br>if {[lsearch -glob [utimers] "* gos *"] == -1} { utimer $timer gos }<br>mysqlclose $mysql(conn)<br>}<br><br>putlog "\002SoftTrading Add\002"</div></blockquote><br>but if i change it and ad a elseif it´s messing up<blockquote class="uncited"><div>[20:45] Tcl error in script for 'timer4':<br>[20:45] wrong # args: should be "foreach varList list ?varList list ...? command<br>"</div></blockquote><blockquote class="uncited"><div>#Mysql Info<br>set mysql(host) "*"<br>set mysql(port) "*"<br>set mysql(user) "*"<br>set mysql(pass) "*"<br>set mysql(datae) "*"<br>set mysql(vers) "2.30"<br>package require mysqltcl $mysql(vers)<br><br>#Timer afgøre hvor tit reklamen bliver skrevet sat til 30 min standart<br>set time 1<br><br>#Det anbefales ikke at ændre noget under denne linie<br>setudef flag softad<br><br>if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }<br>if {[lsearch -glob [utimers] "* gos *"] == -1} { utimer $timer gos }<br><br>proc gos {} {<br>global mysql channel time timer<br>foreach chan [channels] {<br>if {[lsearch -exact [channel info $chan] +softad] &gt; -1} {<br>set mysql(conn) [mysqlconnect -host $mysql(host) -port $mysql(port) -user $mysql(user) -password $mysql(pass)]<br>mysqluse $mysql(conn) $mysql(datae)<br>if {[string equal -nocase $chan "#Icemat"]} {<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM softad where ad LIKE '%Icemat%' ORDER BY RAND() LIMIT 1;" -list] {<br>putserv "PRIVMSG $chan :[lindex $query 1] "<br>}<br>} elseif {[string equal -nocase $chan "#Steelpad"]} {<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM softad where ad LIKE '%Icemat%' ORDER BY RAND() LIMIT 1;" -list] {<br>putserv "PRIVMSG $chan :[lindex $query 1] "<br>}<br>} else {<br>foreach query [mysqlsel $mysql(conn) "SELECT * FROM softad ORDER BY RAND() LIMIT 1;" -list] {<br>putserv "PRIVMSG $chan :[lindex $query 1] "<br>}<br>}<br>}<br>}<br>if {[lsearch -glob [utimers] "* gos *"] == -1} { utimer $timer gos }<br>mysqlclose $mysql(conn)<br>}<br><br>putlog "\002SoftTrading Add\002"</div></blockquote><br>How to fix this :\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4808">benzon</a> — Tue Jul 27, 2004 2:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
