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

	<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>2007-12-07T08:01:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2007-12-07T08:01:28-04:00</updated>

		<published>2007-12-07T08:01:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79093#p79093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79093#p79093"/>
		<title type="html"><![CDATA[Cannot assign proc return value to a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79093#p79093"><![CDATA[
Damn !  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><br>Lol it's been years since I last wrote TCL code. I guess I need to re-read that stuff and refresh my memory !<br>Thanks guys.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Fri Dec 07, 2007 8:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-12-07T07:50:02-04:00</updated>

		<published>2007-12-07T07:50:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79091#p79091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79091#p79091"/>
		<title type="html"><![CDATA[Cannot assign proc return value to a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79091#p79091"><![CDATA[
<blockquote class="uncited"><div>User, because it was saying "invalid command name" so I though it was trying to evaluate the user's ban mask as a command.</div></blockquote>That's exactly what it is doing and it is BECAUSE OF THE BRACKETS (not braces), so get rid of them <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>This is extremely basic stuff... read <a href="http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M10" class="postlink">http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M10</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Dec 07, 2007 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2007-12-07T07:15:17-04:00</updated>

		<published>2007-12-07T07:15:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79090#p79090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79090#p79090"/>
		<title type="html"><![CDATA[Cannot assign proc return value to a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79090#p79090"><![CDATA[
User, because it was saying "invalid command name" so I though it was trying to evaluate the user's ban mask as a command.<br><br>rosc2112, thanks. I'll check the threads you indicated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Fri Dec 07, 2007 7:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-12-07T04:47:04-04:00</updated>

		<published>2007-12-07T04:47:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79081#p79081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79081#p79081"/>
		<title type="html"><![CDATA[Re: Cannot assign proc return value to a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79081#p79081"><![CDATA[
<blockquote class="uncited"><div><em class="text-italics">Tcl error: invalid command name "tester!*@*""</em><br>...<div class="codebox"><p>Code: </p><pre><code>if {[$l_banmask" == "*!*@*"]} {...}</code></pre></div></div></blockquote>Why did you put brackets around that expression?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Dec 07, 2007 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-12-07T02:40:13-04:00</updated>

		<published>2007-12-07T02:40:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79079#p79079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79079#p79079"/>
		<title type="html"><![CDATA[Cannot assign proc return value to a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79079#p79079"><![CDATA[
Did you bother reading the FAQ and the Sticky about how to get proper DEBUG data? <br><br>You didn't tell us the full error, and I don't feel like sitting here figuring out your script's logic, so please post the output of .set errorInfo (after reading the FAQ section dealing with finding bugs/script errors, and reading the Sticky about how to help us help you.)<br><br>And if you come back and say "all .set errorInfo says is "What? You Need Help?""  we're going to collectively neuter 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=7395">rosc2112</a> — Fri Dec 07, 2007 2:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2007-12-07T00:29:17-04:00</updated>

		<published>2007-12-07T00:29:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79076#p79076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79076#p79076"/>
		<title type="html"><![CDATA[Cannot assign proc return value to a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79076#p79076"><![CDATA[
Ok I'm writing a script with many functions but, assuming all variables in the code below are declared and the proc <strong class="text-strong">notice:nochannotice </strong>calls <strong class="text-strong">none:bankickthenick</strong>, why do I get the following error when a nick called <strong class="text-strong">tester</strong> (for example) sends a channel notice:<br><br><em class="text-italics">Tcl error: invalid command name "tester!*@*""</em><br><div class="codebox"><p>Code: </p><pre><code>bind notc - "*" notice:nochannoticeproc none:banmask {p_chan p_nick p_bantype} {  set l_uhost [getchanhost $p_nick $p_chan]  switch -- $p_bantype {    1 { set l_banmask "$p_nick!*@*"}    2 { set l_banmask "*!*@[lindex [split $l_uhost @] 1]" }    3 { set l_banmask "*!*$l_uhost" }    default { set l_banmask "*!*@[lindex [split $l_uhost @] 1]" }  }  if {[$l_banmask" == "*!*@*"]} {    return 0  } else {    return $l_banmask  }}proc none:bankickthenick {p_nick p_chan} {   if {[botisop $p_chan] &amp;&amp; [onchan $p_nick $p_chan]} {    set l_banmask [none:banmask $l_chan $l_nick 1]    putserv "mode $l_chan +b $l_banmask"    putserv "kick $l_chan $p_nick"  }} </code></pre></div>isn't the following line <div class="codebox"><p>Code: </p><pre><code>set l_banmask [none:banmask $l_chan $l_nick 1]</code></pre></div>the correct way to do this if I want to assign the return value <strong class="text-strong">none:banmask</strong> to the variable <strong class="text-strong">l_banmask</strong> ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Fri Dec 07, 2007 12:29 am</p><hr />
]]></content>
	</entry>
	</feed>
