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

	<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-04-15T10:35:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-04-15T10:35:28-04:00</updated>

		<published>2003-04-15T10:35:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19099#p19099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19099#p19099"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19099#p19099"><![CDATA[
thanks!<br><br>now all works fine!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Apr 15, 2003 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-15T08:39:50-04:00</updated>

		<published>2003-04-15T08:39:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19092#p19092</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19092#p19092"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19092#p19092"><![CDATA[
It should be neither.<br><br>You are using a bind type of MSGM. This means private messages sent to the bot.<br><br>In your script, you are using "nick uh hand <strong class="text-strong">chan</strong> arg".<br><br>There is no channel in a private message.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Apr 15, 2003 8:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-04-15T08:37:01-04:00</updated>

		<published>2003-04-15T08:37:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19091#p19091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19091#p19091"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19091#p19091"><![CDATA[
-error- didnt watch correct....where's the delete post button ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Apr 15, 2003 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-04-15T06:17:53-04:00</updated>

		<published>2003-04-15T06:17:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19089#p19089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19089#p19089"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19089#p19089"><![CDATA[
all right! I'll try it asap!<br><br><strong class="text-strong">update:</strong><br><br>it says:<br><blockquote class="uncited"><div>|12:28|  »» [Rbot] [12:28] Tcl error [handlemsg]: wrong # args: should be "handlemsg nick uhost hand chan arg"</div></blockquote>and the code:<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - * handlemsgproc handlemsg {nick uhost hand chan arg} {global isO currLine homeif {$nick != "O"} {return} else {set response [split $arg " "]if {[lindex $response 0] != "Pos"} {return} else {msg $home "debug"incr currLineif {$currLine &lt; 6} {foreach i [split $misc2 ""] {notice "tuxX" "test"}} else {return}}}}</code></pre></div>any suggestions?<br><br>thanks again!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Apr 15, 2003 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-15T04:15:18-04:00</updated>

		<published>2003-04-15T04:15:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19087#p19087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19087#p19087"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19087#p19087"><![CDATA[
THat will teach me to make assumptions.<br><br>Your error is likely your use of the $args variable.<br><br>Args has a special meaning when used in a Tcl procedure definition.<br><br>Where each other variable will contain a string of text, for that portion passed, args contains a list of arguments.<br><br>This allows you to create unlimited length variable lists, without having to specificaly delare them.<br><br>As $args is allready a list, there is no need to split it. Aditionaly, the split command with split using " " by default (so iliminating this part of the command will save trouble).<br><br>Spliting a list causes all sorts of problems, leaving junk characters from the original list, when obtaining an index.<br><br>The quickest method of resolving this, is to use arg rather than args. The split command can remain (including the " " if so wanted), and then all should work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Apr 15, 2003 4:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-04-15T02:28:01-04:00</updated>

		<published>2003-04-15T02:28:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19086#p19086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19086#p19086"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19086#p19086"><![CDATA[
okay!<br><br>thanks again!<br><br>@ppslim: I don't think so, because I tried to put the debug think just right at the beginning, there it works...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Apr 15, 2003 2:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-14T09:22:42-04:00</updated>

		<published>2003-04-14T09:22:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19062#p19062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19062#p19062"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19062#p19062"><![CDATA[
It may be that another script it overwritting the msg proc.<br><br>Try creating a unique name for it, and use it in your scripts to make sure this isn't the problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Apr 14, 2003 9:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-14T09:19:50-04:00</updated>

		<published>2003-04-14T09:19:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19061#p19061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19061#p19061"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19061#p19061"><![CDATA[
If you use this "msg" in more than one proc or somethinglike this and you don't want to have to many lines, yes, but this will slow it down a bit, because he calls another proc while is in one, after he finishes it he returns to it's original one and continues with it till the end of it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 14, 2003 9:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-04-14T09:06:03-04:00</updated>

		<published>2003-04-14T09:06:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19058#p19058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19058#p19058"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19058#p19058"><![CDATA[
thx, but the msg proc looks like this:<br><div class="codebox"><p>Code: </p><pre><code>proc msg {a b} {putserv "privmsg $a :$b"}</code></pre></div>and if I place the debug thing after the first else bracket, it works fine.<br><br>could it be a problem of speed?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Mon Apr 14, 2003 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-14T02:45:41-04:00</updated>

		<published>2003-04-14T02:45:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19043#p19043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19043#p19043"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19043#p19043"><![CDATA[
Replace from:<div class="codebox"><p>Code: </p><pre><code>msg $home "debug"</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $home :debug"</code></pre></div>and you will see an debug thing, or try the putlog as stdragon sugested you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 14, 2003 2:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-13T22:33:33-04:00</updated>

		<published>2003-04-13T22:33:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19038#p19038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19038#p19038"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19038#p19038"><![CDATA[
Where is the 'msg' proc defined? Try replacing msg with putlog, and just watch on the partyline for it to appear.<br><br>putlog "debug"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Apr 13, 2003 10:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-04-10T09:14:36-04:00</updated>

		<published>2003-04-10T09:14:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18861#p18861</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18861#p18861"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18861#p18861"><![CDATA[
ok, getting more conrete:<br><br>|03:12|  »» [Rbot] Msg to o: chanoplist #rtest<br>|03:12|  »» [Rbot] [15:12] [O!<a href="mailto:operserv@operservice.mynet.org">operserv@operservice.mynet.org</a>] Pos Score User/Last seen<br>|03:12|  »» [Rbot] [15:12] [O!<a href="mailto:operserv@operservice.mynet.org">operserv@operservice.mynet.org</a>] 1 1 tuxx <a href="mailto:tuxx@myhost.de">tuxx@myhost.de</a> tuxx<br>|03:12|  »» [Rbot] [15:12] [O!<a href="mailto:operserv@operservice.mynet.org">operserv@operservice.mynet.org</a>] 2 1 Last seen: Thu Apr 10 01:04:12 2003<br>|03:12|  »» [Rbot] [15:12] [O!<a href="mailto:operserv@operservice.mynet.org">operserv@operservice.mynet.org</a>] 3 1 Last seen: Thu Apr 10 01:04:12 2003<br>|03:12|  »» [Rbot] [15:12] [O!<a href="mailto:operserv@operservice.mynet.org">operserv@operservice.mynet.org</a>] 4 1 @rbot <a href="mailto:Rbot@myhost.de">Rbot@myhost.de</a><br>|03:12|  »» [Rbot] [15:12] [O!<a href="mailto:operserv@operservice.mynet.org">operserv@operservice.mynet.org</a>] --- End of list - 4 listed ---<br><br>so, my current proc is like this:<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - * handlemsgset isO 0set currLine 0set home "#mychan"proc handlemsg {nick uhost hand chan args} {global isO currLine homeif {$nick != "O"} {return} else {set response [split $args " "]if {[lindex $response 0] != "Pos"} {return} else {msg $home "debug"incr currLineif {$currLine &lt; 6} {foreach i [split $misc2 ""] {notice "tuxX" "test"}} else {return}}}}</code></pre></div>It should send "debug" to the channel, but it doesn't. any suggestions?<br><br>thanks! <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=939">eiSi</a> — Thu Apr 10, 2003 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-04-09T02:30:13-04:00</updated>

		<published>2003-04-09T02:30:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18763#p18763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18763#p18763"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18763#p18763"><![CDATA[
thanks a lot!<br><br>this really helps me!<br><br>I'll try it today!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Wed Apr 09, 2003 2:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-08T16:52:23-04:00</updated>

		<published>2003-04-08T16:52:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18749#p18749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18749#p18749"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18749#p18749"><![CDATA[
Use a msgm bind on *. Make sure the nick is "blubb". If the text says "Pos nick desc", set a flag to 1. Otherwise, make sure flag is 1 already (if not, return). Split the text, make sure the first item on the line is a number from 1-6. Check to see if the second item is @rwer. If it is, success! If the first item on the line is &gt; 6, and flag is 1, then failure, and set flag to 0.<br><br>There's your logic, now you're 3/4 done!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Apr 08, 2003 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-04-08T08:20:12-04:00</updated>

		<published>2003-04-08T08:20:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18715#p18715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18715#p18715"/>
		<title type="html"><![CDATA[parsing messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18715#p18715"><![CDATA[
hi there!<br><br>a little question:<br><br>I message a channelservice:<br><br>msg blubb showmedatop5<br><br>and it returns:<br><br>Pos nick desc<br>1 @blub blubb0r<br>2 @asd asdasdasd<br>3 @asdasdasd adsdsasdasad<br>4 @adddd dddddd<br>5 @rwer werwerwer<br>6 @mmm mmmm<br><br>how to "check" if the the user rwer is in the first 5/6 returned lines?<br><br>can you please help me with this problem? thanks a lot!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Apr 08, 2003 8:20 am</p><hr />
]]></content>
	</entry>
	</feed>
