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

	<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>2009-06-05T14:39:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-06-05T14:39:36-04:00</updated>

		<published>2009-06-05T14:39:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89104#p89104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89104#p89104"/>
		<title type="html"><![CDATA[Error with colours?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89104#p89104"><![CDATA[
You are removing the color codes, but you don't remove the preceding control character. This messes up your string comparisons. Have a look at the stripcodes function. You'll find it documented in the doc/tcl-commands.doc file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Jun 05, 2009 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krzys]]></name></author>
		<updated>2009-06-05T12:35:33-04:00</updated>

		<published>2009-06-05T12:35:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89103#p89103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89103#p89103"/>
		<title type="html"><![CDATA[Error with colours?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89103#p89103"><![CDATA[
Hi. I wrote script listening to announces of other bot and initiate shell script. This is the source:<br><div class="codebox"><p>Code: </p><pre><code>set do "no"bind pubm - * uploadedproc uploaded { nick host hand chan arg } {if {$nick == "BotNick"} {set got_custom_number [split $arg]global stamp name cat size value robset stamp [lindex $got_custom_number 0 ]regsub -all {14,1} $stamp "" stampputlog "Stamp is $stamp"if {$stamp == "Znacznik1......:4"} {set name [lindex $got_custom_number 1 ]putlog "Name is $name"set do no}if {$stamp == "Zacznik2..:3"} {set cat [lindex $got_custom_number 1 ]set do noputlog "cat is $cat"}if {$stamp == "Znacznik3...:4"} {set do yesputlog "Now i can do my best!"}if {$do == "yes"} {timer 20 "exec /home/eggdrop/script.sh $name $cat"putlog "/scriptt.sh $name $cat"}}}</code></pre></div>Here is sample log from mIRc  with NNS from my channel:<br><br><img src="http://iv.pl/images/2sfgs1xc2ugj85u41u7.jpg" class="postimage" alt="Image"><br><br>Everytime i see "Stamp is Znacznik1......:4" etc.. but  "Name is nazwa" neighter "cat is kategoria" Can you explain me why ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10548">krzys</a> — Fri Jun 05, 2009 12:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
