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

	<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>2010-05-26T06:42:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[4mirc]]></name></author>
		<updated>2010-05-26T06:42:04-04:00</updated>

		<published>2010-05-26T06:42:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93174#p93174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93174#p93174"/>
		<title type="html"><![CDATA[problem with speaker bot tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93174#p93174"><![CDATA[
hello nml375 <br><br> thanks for the reply <br><br> i fixed the script and its work 100% <br><br> thanks alot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9924">4mirc</a> — Wed May 26, 2010 6:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-05-25T11:00:31-04:00</updated>

		<published>2010-05-25T11:00:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93172#p93172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93172#p93172"/>
		<title type="html"><![CDATA[problem with speaker bot tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93172#p93172"><![CDATA[
There are two main issues with that code:<br><br>First, in the amsg proc, there's no space inbetween the channel and the message (with the colon-prefix). $chan:$arg should be $chan :$arg<br><br>Secondly, the "list" of messages is not a proper list, and your script may break if there's any { or } characters within. The proper way of doing this is to use the list command to build/set the list.<br><br>Further, the code has some spurious global commands at aglobal context. This is not an error, but a pointless line of code that only makes the code harder to read.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue May 25, 2010 11:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[4mirc]]></name></author>
		<updated>2010-05-24T22:05:05-04:00</updated>

		<published>2010-05-24T22:05:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93170#p93170</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93170#p93170"/>
		<title type="html"><![CDATA[problem with speaker bot tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93170#p93170"><![CDATA[
hello <br><br> i used to use this tcl for 5 years and its work good<br><br> but suddenly i dont know what happen to not work again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br> can anyone fix it for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br><div class="codebox"><p>Code: </p><pre><code>set adtext {        "textherer"        "textherer"        "textherer"        "textherer"        "textherer"        "textherer"        "textherer"}set ad-at- 15#######DO NOT EDIT BELOW THESE LINES#######set notnick "$botnick" set notnick [string tolower ${nick}]if {![info exists {ald}]} {  global notnick chan ad-at- adtext  set ald 1  timer ${ad-at-} printing}proc printing {} {  global notnick channels ad-at- adtext  set printochan [lindex $adtext [rand [llength $adtext]]]        amsg "$printochan"  timer ${ad-at-} printing}putlog "\002\&lt;admin\&gt; Specker Bot is Load \&lt;admin\&gt;\002"proc amsg { arg } {foreach chan [channels] {putserv "privmsg $chan:$arg"}}</code></pre></div><br><br>Regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9924">4mirc</a> — Mon May 24, 2010 10:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
