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

	<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-08-13T05:40:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T05:40:01-04:00</updated>

		<published>2003-08-13T05:40:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24825#p24825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24825#p24825"/>
		<title type="html"><![CDATA[vars with &quot;-&quot; not beening read]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24825#p24825"><![CDATA[
<blockquote class="uncited"><div>so, tcl has a problem with vars that have a "-" in them?<br>what about all those in th conf file?</div></blockquote>Tcl doesn't have a problem with them. Some users have a problem addressing them the right way though <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>You can use any char you like in a variable name, but the $ parser is a bit picky. (like I mentioned in my previous post)<br><br>Using "-" in a variable name only leads to extra work when you want variable substitution, so why don't you use "_" instead or start using 'set' to retrieve the value?<br><br>I've no idea why the eggdrop developers chose to use "-" <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=2878">user</a> — Wed Aug 13, 2003 5:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-13T05:25:54-04:00</updated>

		<published>2003-08-13T05:25:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24823#p24823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24823#p24823"/>
		<title type="html"><![CDATA[vars with &quot;-&quot; not beening read]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24823#p24823"><![CDATA[
so, tcl has a problem with vars that have a "-" in them?<br><br><br>what about all those in th conf file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Aug 13, 2003 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T05:21:01-04:00</updated>

		<published>2003-08-13T05:21:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24822#p24822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24822#p24822"/>
		<title type="html"><![CDATA[vars with &quot;-&quot; not beening read]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24822#p24822"><![CDATA[
<blockquote class="uncited"><div>what are you escaping?</div></blockquote>"the name is a sequence of one or more characters that are a letter, digit, underscore, or namespace separators (two or more colons)."<br>- <a href="http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M11" class="postlink">http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M11</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 13, 2003 5:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-13T05:12:47-04:00</updated>

		<published>2003-08-13T05:12:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24820#p24820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24820#p24820"/>
		<title type="html"><![CDATA[vars with &quot;-&quot; not beening read]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24820#p24820"><![CDATA[
what are you escaping?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Aug 13, 2003 5:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T04:27:41-04:00</updated>

		<published>2003-08-13T04:27:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24819#p24819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24819#p24819"/>
		<title type="html"><![CDATA[vars with &quot;-&quot; not beening read]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24819#p24819"><![CDATA[
escape it by enclosing the variable name in {}'s or use set to retrieve the value:<br><br>eg: ${botnet-nick} or [set botnet-nick]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 13, 2003 4:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-13T04:15:15-04:00</updated>

		<published>2003-08-13T04:15:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24818#p24818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24818#p24818"/>
		<title type="html"><![CDATA[vars with &quot;-&quot; not beening read]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24818#p24818"><![CDATA[
It seems that i can not get the egg to read<br>any var that has a "-" in it.<br><br>is this a common syntax error?<br><div class="codebox"><p>Code: </p><pre><code>set found-codes 1bind pubm -|- "*" protect:channelproc protect:channel {nick uhost handle channel text} {  global botnick found-codes  set chan [string tolower $channel]  if {![botisop $chan] || [isop $nick $chan]} {return 0}  puthelp "PRIVMSG $chan :code count is $found-codes"}</code></pre></div>[03:58] Tcl error [protect:channel]: can't read "found": no such variable<br><br><br><br>please help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Aug 13, 2003 4:15 am</p><hr />
]]></content>
	</entry>
	</feed>
