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

	<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-02-28T05:37:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sparta]]></name></author>
		<updated>2005-02-28T05:37:18-04:00</updated>

		<published>2005-02-28T05:37:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47032#p47032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47032#p47032"/>
		<title type="html"><![CDATA[variable problem [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47032#p47032"><![CDATA[
I solved the problem with:<div class="codebox"><p>Code: </p><pre><code>proc set:sbch {nickc hand text} { global channels  set channels "$text" putlog "S-Bitch channel set to: $channels"}</code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6022">sparta</a> — Mon Feb 28, 2005 5:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-27T21:02:37-04:00</updated>

		<published>2005-02-27T21:02:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47018#p47018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47018#p47018"/>
		<title type="html"><![CDATA[variable problem [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47018#p47018"><![CDATA[
Plus I don't think you would need to set it global, if you don't use this variable in any other proc. Because using it as a local within the proc would also reduce and minimize the number of errors.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Feb 27, 2005 9:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-27T18:44:06-04:00</updated>

		<published>2005-02-27T18:44:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47014#p47014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47014#p47014"/>
		<title type="html"><![CDATA[variable problem [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47014#p47014"><![CDATA[
I wasnt sure if that was a problem was just an attempt to eliminate all the easy solutions first then move onto the harder ones.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sun Feb 27, 2005 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-27T14:25:16-04:00</updated>

		<published>2005-02-27T14:25:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47010#p47010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47010#p47010"/>
		<title type="html"><![CDATA[variable problem [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47010#p47010"><![CDATA[
<blockquote class="uncited"><div>so it say it set the variable, and i get no errors while set it, but when i want to call it its not there..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"></div></blockquote>The error is in the code trying to read the variable. Or some other proc unsetting it.<blockquote class="uncited"><div>Try changing your var name to something different as at the moment its the same as your proc name.</div></blockquote>That's not a problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Feb 27, 2005 2:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-27T12:16:56-04:00</updated>

		<published>2005-02-27T12:16:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47002#p47002</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47002#p47002"/>
		<title type="html"><![CDATA[variable problem [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47002#p47002"><![CDATA[
Try changing your var name to something different as at the moment its the same as your proc name.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sun Feb 27, 2005 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sparta]]></name></author>
		<updated>2005-02-27T10:16:39-04:00</updated>

		<published>2005-02-27T10:16:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46997#p46997</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46997#p46997"/>
		<title type="html"><![CDATA[variable problem [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46997#p46997"><![CDATA[
I have this code:<div class="codebox"><p>Code: </p><pre><code>bind dcc n bchan sbchproc sbch {channels i bc} { global sbch set sbch $bc putlog "S-Bitch channel(s) set to: $bc"}</code></pre></div>Now the problem is that it wont set the var sbch as $bc .. i have been asking in some channels.. and people tell me that it should work, but dosent. so anyone here that can help me?<br><br>this is what i want it to do, when i type ".myword #channel", then i want it to set var "sbch #channel" .. i dont get a error or anything, but it wont set the var.. how ever if i add in the tcl "set sbch #channel", then it add the var without any problem, but i want to be able to change the channel(s) true partyline, the reason for this is that i working on a extra-bitch TCL, and i want to be able to turn bitch on/off on channels.. and the bitchy will only happen on the channel or channels that are in that var. now when i try set the var true DCC i get this:<br><br>« MyNick » .bchan #channel<br>« BotNick » [15:07] S-Bitch channel(s) set to: #channel<br><br>And everything looks ok, now when i op somone that should be deoped i get this:<br><br>« BotNick » [15:07] S-Bitch channel(s) set to: #channel<br>« BotNick » [15:07] #channel: mode change '+o nick' by nick2!ident@host<br>« BotNick » [15:07] Tcl error [sbitch]: can't read "sbch": no such variable<br><br>so it say it set the variable, and i get no errors while set it, but when i want to call it its not there..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6022">sparta</a> — Sun Feb 27, 2005 10:16 am</p><hr />
]]></content>
	</entry>
	</feed>
