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

	<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>2003-05-16T04:20:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-16T04:20:10-04:00</updated>

		<published>2003-05-16T04:20:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20240#p20240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20240#p20240"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20240#p20240"><![CDATA[
Replace this line with the following<br><div class="codebox"><p>Code: </p><pre><code>putchan $chan $msg</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $chan :$msg"</code></pre></div>I don't any reason to, but the above command, may be interpreting the variable.<br><br>Ontop, are you able yourself to send strings with $ to the IRC server? The IRC server may filter text, to help curb the effects of people trying to exploit users with the $decode worms and tricks.<br><br>You may also wish to use the putlog command, as the ifrst line of the script (inside the proc), to see exactly what eggdrop is receiving.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri May 16, 2003 4:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-05-15T20:26:27-04:00</updated>

		<published>2003-05-15T20:26:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20234#p20234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20234#p20234"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20234#p20234"><![CDATA[
bind msg - !say msg_say <br><br>proc msg_say {nick uhost hand arg} { <br>  global botnick <br>  set arg [split $arg] <br>  if {[llength $arg] &lt; 2} { <br>    putserv "NOTICE $nick :/msg $botnick !say &lt;#chan&gt; &lt;somethingtosay&gt;" <br>  } else { <br>    set chan [lindex $arg 0] <br>    if { ![validchan $chan]} { <br>      putserv "NOTICE $nick :\"$chan\": invalid chan." <br>      return 0 <br>    } <br>    set msg [join [lrange $arg 1 end]]<br>  } <br>  putchan $chan $msg <br>} <br><br>putlog "Say loaded" <br><br><br>there are no errors in the partyline...thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu May 15, 2003 8:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-15T11:25:06-04:00</updated>

		<published>2003-05-15T11:25:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20224#p20224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20224#p20224"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20224#p20224"><![CDATA[
Can you post the script as it is now, and look in the partyline of the bot, to see of there are any errors.<br><br>It sounds like it is interpreting them as variables, but unless you are using expr, eval, subst or timers, there should be no issue of this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu May 15, 2003 11:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-05-15T10:07:05-04:00</updated>

		<published>2003-05-15T10:07:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20221#p20221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20221#p20221"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20221#p20221"><![CDATA[
hi again - actually, it's outputting, but now it's ignoring $ signs completely<br><br>original txt to display: L.Lease sells US HCI unit for $102 mln (Reuters)<br><br>outputted as: L.Lease sells US HCI unit for mln (Reuters)<br><br>thanks...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu May 15, 2003 10:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-05-15T09:27:21-04:00</updated>

		<published>2003-05-15T09:27:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20220#p20220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20220#p20220"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20220#p20220"><![CDATA[
sorry - I made a mistake - it's working perfectly now - thanks alot for the help  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu May 15, 2003 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-05-15T08:42:10-04:00</updated>

		<published>2003-05-15T08:42:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20219#p20219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20219#p20219"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20219#p20219"><![CDATA[
well... that's not because of the line I gave you.... btw.. you did understand that you were supposed to replace this line<div class="codebox"><p>Code: </p><pre><code>set msg [lrange $arg 1 end]</code></pre></div>didn't you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu May 15, 2003 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-05-15T08:37:58-04:00</updated>

		<published>2003-05-15T08:37:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20217#p20217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20217#p20217"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20217#p20217"><![CDATA[
hmmm that's not outputting anything now - no TCL error tho...sorry<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu May 15, 2003 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-05-15T08:19:07-04:00</updated>

		<published>2003-05-15T08:19:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20216#p20216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20216#p20216"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20216#p20216"><![CDATA[
he forgot to make the msg variable into a string<br>do it like this:<div class="codebox"><p>Code: </p><pre><code>set msg [join [lrange $arg 1 end]]</code></pre></div>the output should be correct then<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu May 15, 2003 8:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-05-15T07:53:45-04:00</updated>

		<published>2003-05-15T07:53:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20214#p20214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20214#p20214"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20214#p20214"><![CDATA[
thanks pp - I've tried what you've posted, but it's still returning { } around $ and ; signs...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>btw - I didn't write the script, but I hope it's author is following this threat!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu May 15, 2003 7:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-14T05:22:47-04:00</updated>

		<published>2003-05-14T05:22:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20185#p20185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20185#p20185"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20185#p20185"><![CDATA[
While you seemed to have made an effort to contain list commands on string, you have failed. This looks to be down to one issue, the use of the $args variable.<br><br>When using this, you have ended up using more commands than needed, and to most eyes, would looks like these list on string issues are contained.<br><div class="codebox"><p>Code: </p><pre><code># this script is used to talk "anonymously" on a chan # msg the bot using: /msg $botnick !say #chan ...... # and everything after "#chan" will be displayed in "#chan" bind msg - !say msg_say proc msg_say {nick uhost hand arg} {   global botnick  set arg [split $arg]  if {[llength $arg] &lt; 2} {     putserv "NOTICE $nick :/msg $botnick !say &lt;#chan&gt; &lt;somethingtosay&gt;"   } else {     set chan [lindex $arg 0]     if { ![validchan $chan]} {       putserv "NOTICE $nick :\"$chan\": invalid chan."       return 0     }     ## FIX ME this condition is never reached     if { ![onchan $botnick $chan] } {       putserv "NOTICE $nick :je ne suis pas sur le chan \"$chan\"."       return 0     }     ## END FIX ME     # comment this next 4 lines if you want to be able to talk in a chan you're not in     if { ![onchan $nick $chan] } {       putserv "NOTICE $nick :tu n'es pas sur le chan \"$chan\"."       return 0     }     set msg [lrange $arg 1 end]   }   putchan $chan $msg } putlog "msg_say.tcl by fraff"</code></pre></div>That should clear most of it up. However, I havn't fully checked it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed May 14, 2003 5:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-05-14T03:58:13-04:00</updated>

		<published>2003-05-14T03:58:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20184#p20184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20184#p20184"/>
		<title type="html"><![CDATA[script symbol chaos!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20184#p20184"><![CDATA[
Hi there<br><br>I have a mIRC bot that msg's info to my eggdrop bot (because the news script is for mIRC, but I send it to the eggdrop to announce). However, when the line of news contains certain symbols, the eggdrop outputs to the channel like this:<br><br>Eurostocks open {flat;} RWE, Repsol gain, Aviva dips (Reuters)<br><br>As you can see, it puts { } around the word (flat) that contains a symbol - in this case a semi-colon.<br><br>The TCL script I'm using to announce the info in the channel is msg_say.tcl from the egghelp library (below)<br><br>Would appreciate any ideas to get rid of this problem!<br><br>Thanks.<br><blockquote class="uncited"><div># this script is used to talk "anonymously" on a chan<br># msg the bot using: /msg $botnick !say #chan ......<br># and everything after "#chan" will be displayed in "#chan"<br><br><br>bind msg - !say msg_say<br><br>proc msg_say {nick uhost hand args} {<br>    global botnick <br>    if {[llength [lindex $args 0]]&lt;2} {<br>        putserv "NOTICE $nick :/msg $botnick !say &lt;#chan&gt; &lt;something to say&gt;"<br>    } else {<br>        set chan [lindex [lindex $args 0] 0]<br>        if { ![validchan $chan]} {<br>            putserv "NOTICE $nick :\"$chan\": invalid chan."<br>            return 0<br>        }<br>        ## FIX ME this condition is never reached<br>        if { ![onchan $botnick $chan] } {<br>            putserv "NOTICE $nick :je ne suis pas sur le chan \"$chan\"."<br>            return 0<br>        }<br>        ## END FIX ME<br>        # comment this next 4 lines if you want to be able to talk in a chan you're not in<br>        if { ![onchan $nick $chan] } {<br>            putserv "NOTICE $nick :tu n'es pas sur le chan \"$chan\"."<br>            return 0<br>        }<br>        set msg [lrange [lindex $args 0] 1 end]<br>    }<br>    putchan $chan $msg<br>}<br><br>putlog "msg_say.tcl by fraff"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed May 14, 2003 3:58 am</p><hr />
]]></content>
	</entry>
	</feed>
