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

	<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>2005-07-07T13:43:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bratt]]></name></author>
		<updated>2005-07-07T13:43:10-04:00</updated>

		<published>2005-07-07T13:43:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51932#p51932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51932#p51932"/>
		<title type="html"><![CDATA[!say script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51932#p51932"><![CDATA[
cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6437">bratt</a> — Thu Jul 07, 2005 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-07-06T09:38:11-04:00</updated>

		<published>2005-07-06T09:38:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51859#p51859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51859#p51859"/>
		<title type="html"><![CDATA[!say script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51859#p51859"><![CDATA[
Well it shouldn't. <br><br>Maybe you forgot something, here is the fixed code:<br><div class="codebox"><p>Code: </p><pre><code># Says something on any channel# Usage: !say &lt;chan&gt; &lt;what&gt;proc pub:say {nick host hand chan arg} {   global botnick   if {![auth:check $hand]} {return 0}   if {[llength $arg] &lt; 2} {      notice $nick "Usage: !say &lt;chan&gt; &lt;what&gt;"      return 0   }   set thechan [lindex [split $arg] 0]   set what [lrange [split $arg] 1 end]   if {![onchan $botnick $thechan]} {      notice $nick "I'm not on that channel."      return 0   }   puthelp "PRIVMSG $thechan :$what"   notice $nick "Said to $thechan: $what"   putcmdlog "&lt;&lt;$nick&gt;&gt; !$hand! ($thechan) !say $what" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Jul 06, 2005 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bratt]]></name></author>
		<updated>2005-07-05T19:10:59-04:00</updated>

		<published>2005-07-05T19:10:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51833#p51833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51833#p51833"/>
		<title type="html"><![CDATA[!say script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51833#p51833"><![CDATA[
cheers metroid i tried that and it seems to be doing the same<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6437">bratt</a> — Tue Jul 05, 2005 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-07-05T09:32:07-04:00</updated>

		<published>2005-07-05T09:32:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51809#p51809</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51809#p51809"/>
		<title type="html"><![CDATA[!say script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51809#p51809"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $thechan :$what"</code></pre></div>However, it will exploit with braces and brackets.<br><br>Use this code instead<br><div class="codebox"><p>Code: </p><pre><code>set thechan [lindex [split $arg] 0]set what [lrange [split $arg] 1 end]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Jul 05, 2005 9:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bratt]]></name></author>
		<updated>2005-07-05T06:07:58-04:00</updated>

		<published>2005-07-05T06:07:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51806#p51806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51806#p51806"/>
		<title type="html"><![CDATA[!say script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51806#p51806"><![CDATA[
hi need help with this script that is intent to make a bot say something in channel by using the trigger !say #chan &lt;text&gt;<br><br>the script seems to be bugged or has a mistake because when i do the command it says it to the channel its commanded in rather than the channel its meant to.<br><br>the auth part just means the script i have for a user to auth to be able to use the command<br><div class="codebox"><p>Code: </p><pre><code># Says something on any channel# Usage: !say &lt;chan&gt; &lt;what&gt;proc pub:say {nick host hand chan arg} {global botnickif {![auth:check $hand]} {return 0}if {[llength $arg] &lt; 2} {notice $nick "Usage: !say &lt;chan&gt; &lt;what&gt;"return 0}set thechan [lindex $arg 0]set what [lrange $arg 1 end]if {![onchan $botnick $thechan]} {notice $nick "I'm not on that channel."return 0}puthelp "PRIVMSG $chan :$what"notice $nick "Said to $thechan: $what"putcmdlog "&lt;&lt;$nick&gt;&gt; !$hand! ($thechan) !say $what"</code></pre></div>thanx in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6437">bratt</a> — Tue Jul 05, 2005 6:07 am</p><hr />
]]></content>
	</entry>
	</feed>
