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

	<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-11-08T09:11:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-08T09:11:31-04:00</updated>

		<published>2005-11-08T09:11:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57182#p57182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57182#p57182"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57182#p57182"><![CDATA[
Sometimes you just cannot see for the trees. LOL<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Nov 08, 2005 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ache]]></name></author>
		<updated>2005-11-08T07:24:47-04:00</updated>

		<published>2005-11-08T07:24:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57181#p57181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57181#p57181"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57181#p57181"><![CDATA[
<blockquote class="uncited"><div>Damn, I must be blind. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"></div></blockquote>exactly what i though when i got the solution.<br>err not that you would be blind, but me.<br>so simple..  that will probably never happen again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6853">ache</a> — Tue Nov 08, 2005 7:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-04T20:31:33-04:00</updated>

		<published>2005-11-04T20:31:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57070#p57070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57070#p57070"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57070#p57070"><![CDATA[
Damn, I must be blind. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Nov 04, 2005 8:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ache]]></name></author>
		<updated>2005-11-04T10:04:24-04:00</updated>

		<published>2005-11-04T10:04:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57059#p57059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57059#p57059"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57059#p57059"><![CDATA[
worked like charm!<br>thanks Sir_Fz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6853">ache</a> — Fri Nov 04, 2005 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-04T09:49:22-04:00</updated>

		<published>2005-11-04T09:49:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57057#p57057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57057#p57057"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57057#p57057"><![CDATA[
remove the brackets from<div class="codebox"><p>Code: </p><pre><code>[pub:addgreet $nick $greetnick $greetchannel $greettext]</code></pre></div>(both)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Nov 04, 2005 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ache]]></name></author>
		<updated>2005-11-04T07:44:53-04:00</updated>

		<published>2005-11-04T07:44:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57054#p57054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57054#p57054"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57054#p57054"><![CDATA[
Tried it but with no luck.<br>still the same error..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6853">ache</a> — Fri Nov 04, 2005 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-04T07:16:50-04:00</updated>

		<published>2005-11-04T07:16:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57052#p57052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57052#p57052"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57052#p57052"><![CDATA[
Try changing:<div class="codebox"><p>Code: </p><pre><code>elseif {[string range $greetchannel 0 2]=="all"} {</code></pre></div>To:<div class="codebox"><p>Code: </p><pre><code>elseif {([string range $greetchannel 0 2] == "all")} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Nov 04, 2005 7:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ache]]></name></author>
		<updated>2005-11-04T04:34:38-04:00</updated>

		<published>2005-11-04T04:34:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57050#p57050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57050#p57050"/>
		<title type="html"><![CDATA[Error: invalid command name &quot;&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57050#p57050"><![CDATA[
I have one more problem.<br>I get this error:<div class="codebox"><p>Code: </p><pre><code>Tcl error [pub:checkgreet]: invalid command name ""</code></pre></div>This is the code i have for the pub:checkgreet proc atm:<div class="codebox"><p>Code: </p><pre><code>proc pub:checkgreet { nick uhost handle channel arguments } {  list arguments $arguments  set greetnick [lindex $arguments 0]  set greetchannel [lindex $arguments 1]  set greettext [lrange $arguments 2 end]  if {([string index $greetchannel 0]=="#")} {    [pub:addgreet $nick $greetnick $greetchannel $greettext]}elseif {[string range $greetchannel 0 2]=="all"} {    [pub:addgreet $nick $greetnick $greetchannel $greettext]  } else {    putquick "NOTICE $nick : Please state a channel to greet in. \026!chelp !addgreet\026 for more info."    return  }}</code></pre></div>And this is the code i have for the pub:addgreet proc:<div class="codebox"><p>Code: </p><pre><code>proc pub:addgreet {nick greetnick greetchannel greettext} {  set greetdb "scripts/charlie.tcl/greets.db"  set greet "$greetchannel $greetnick $greettext"  set searchString "$greetchannel $greetnick"  set greetData [main:filetodata $greetdb]  set greetIndex [lsearch $greetData $searchString*]  if {($greetIndex &gt;= "0")} {    set greetData [lreplace $greetData $greetIndex $greetIndex $greet]    putquick "NOTICE $nick : Changed greet message for $greetnick on $greetchannel."  } else {    lappend greetData "$greet"    putquick "NOTICE $nick : Added greet message for $greetnick on $greetchannel."  }  set greetChannel [open $greetdb "w"]  set greetData [lsort $greetData]  set greetData [join $greetData "\n"]  puts -nonewline $greetChannel "$greetData\n"  close $greetChannel}</code></pre></div>thanks for any help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6853">ache</a> — Fri Nov 04, 2005 4:34 am</p><hr />
]]></content>
	</entry>
	</feed>
