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

	<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>2008-06-03T08:32:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-06-03T08:32:06-04:00</updated>

		<published>2008-06-03T08:32:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83393#p83393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83393#p83393"/>
		<title type="html"><![CDATA[Invalid Command Name]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83393#p83393"><![CDATA[
yea, I see...<br><br>I already fixed it myself yesterday<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Tue Jun 03, 2008 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-06-01T16:41:26-04:00</updated>

		<published>2008-06-01T16:41:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83353#p83353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83353#p83353"/>
		<title type="html"><![CDATA[Invalid Command Name]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83353#p83353"><![CDATA[
The flaw is this:<div class="codebox"><p>Code: </p><pre><code>if {![$nick == $owner]} {</code></pre></div>Basically, you tell tcl to execute <em class="text-italics">$nick</em> as a command with first argument being <em class="text-italics">==</em> and second argument being <em class="text-italics">$owner</em>. Most likely not what you intended...<br><br>I'd suggest you use the <strong class="text-strong">string equal</strong> command to compare the strings, although you could do a simple comparison somewhat like the code suggests you thought of doing. With the second option however, don't treat it as a command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jun 01, 2008 4:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-06-01T15:06:30-04:00</updated>

		<published>2008-06-01T15:06:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83334#p83334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83334#p83334"/>
		<title type="html"><![CDATA[Invalid Command Name]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83334#p83334"><![CDATA[
I wrote a little script, which forwards all msgs to the bot to me, and lets me talk to the last talker through the bot.<br><br>if I write something now, I get this error in Partyline:<br><blockquote class="uncited"><div>Tcl Error [forward]: Invalid Command name "(the nick I have)"</div></blockquote>whats wrong with my script?<br><br>and is there a better way to check if someone is online than "onchan" ?<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - * forwardset owner "Nimos"set ownerchan "#nimos"proc forward {nick host hand text} {global lastnick owner ownerchanif {![$nick == $owner]} {       if {[onchan $owner $ownerchan]} {              puthelp "PRIVMSG $owner :$nick $text"              set lastnick "$nick"              }} else {        puthelp "PRIVMSG $lastnick :$text"        }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Sun Jun 01, 2008 3:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
