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

	<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>2016-11-08T19:11:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-11-08T19:11:18-04:00</updated>

		<published>2016-11-08T19:11:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105542#p105542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105542#p105542"/>
		<title type="html"><![CDATA[Variable does not take value]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105542#p105542"><![CDATA[
When programmed it looks I was asleep.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br>I declared the variables backwards. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>Thanks <strong class="text-strong">caesar</strong> and <strong class="text-strong">willyw</strong> by being more awake than me.  <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=12499">juanamores</a> — Tue Nov 08, 2016 7:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-11-08T10:09:00-04:00</updated>

		<published>2016-11-08T10:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105541#p105541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105541#p105541"/>
		<title type="html"><![CDATA[Variable does not take value]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105541#p105541"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>  utimer 5 [list vDJ oldnick uhost hand chan newnick Djs_channel dj]   proc vDJ {$oldnick $uhost $hand $chan $newnick $Djs_channel $dj} { </code></pre></div>Are these just backwards?<br><br>As in, should be:<div class="codebox"><p>Code: </p><pre><code>utimer 5 [list vDJ $oldnick $uhost $hand $chan $newnick $Djs_channel $dj]   proc vDJ {oldnick uhost hand chan newnick Djs_channel dj} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Nov 08, 2016 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-11-08T10:06:17-04:00</updated>

		<published>2016-11-08T10:06:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105540#p105540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105540#p105540"/>
		<title type="html"><![CDATA[Variable does not take value]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105540#p105540"><![CDATA[
<blockquote class="uncited"><div>That's because you forgot to add $ in front of the variable names. For example it should be $oldnick instead of oldnick.</div></blockquote>You mean in this line, right?<div class="codebox"><p>Code: </p><pre><code>utimer 5 [list vDJ oldnick uhost hand chan newnick Djs_channel dj] </code></pre></div>If so, I saw that too.<br>However, wouldn't that itself assign a value to the variable in the proc when called?  Thus perhaps causing some other error, but not the one described?<br><br>I started to answer this post earlier, then after I re-thought it as just stated, I convinced myself that I was not awake yet, and to wait awhile.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I must be overlooking something ....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Nov 08, 2016 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2016-11-08T08:42:29-04:00</updated>

		<published>2016-11-08T08:42:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105539#p105539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105539#p105539"/>
		<title type="html"><![CDATA[Variable does not take value]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105539#p105539"><![CDATA[
That's because you forgot to add $ in front of the variable names. For example it should be $oldnick instead of oldnick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 08, 2016 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-11-08T06:50:20-04:00</updated>

		<published>2016-11-08T06:50:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105538#p105538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105538#p105538"/>
		<title type="html"><![CDATA[Variable does not take value]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105538#p105538"><![CDATA[
This script controls changes nicks.<br><div class="codebox"><p>Code: </p><pre><code>bind nick - * nickchangeset debug_channel "#debugs_tcl"set Djs_channel #Djs_channel"proc nickchange { oldnick uhost hand chan newnick } {    global debug_channel Djs_channelif {[string tolower $chan] != [string tolower $Djs_channel]} {return 0}#DJs data baseif {[file exists dj]} {    set temp [open "dj" r]    set djs [gets $temp]set dj [lindex $djs 0]    close $temp}#putmsg $debug_channel "variable previous nick = $oldnick"#dj database waiting timerutimer 5 [list vDJ oldnick uhost hand chan newnick Djs_channel dj]proc vDJ {$oldnick $uhost $hand $chan $newnick $Djs_channel $dj} {if {([info exist dj]) &amp;&amp; ([info exist oldnick]) &amp;&amp; ($oldnick == "$dj")} { putmsg $Djs_channel "$newnick does not change its nickname while is on air. Thanks"return}#DJs and Staff check flagsset hand [nick2hand $oldnick $chan]if {[djs:check:flags $chan $hand]} { return } else {putmsg $Djs_channel "$newnick remember back to your nick..."}}}</code></pre></div><strong class="text-strong">ERROR:<br>[10:39:38] Tcl error in script for 'timer45':<br>[10:39:38] can't read "oldnick": no such variable</strong><br><blockquote class="uncited"><div>..................................................<br>#putmsg $debug_channel "variable previous nick = $oldnick" <span style="color:green"><strong class="text-strong">HERE $oldnick is set perfectly..</strong></span><br><br>#dj database waiting timer<br>utimer 5 <ul><li>proc vDJ {$oldnick $uhost $hand $chan $newnick $Djs_channel $dj} {<br><span style="color:red"><strong class="text-strong">HERE can't read "oldnick": no such variable</strong></span></li></ul></div></blockquote>I do not understand that the variable has value on the previous line and NOT in the next line.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Tue Nov 08, 2016 6:50 am</p><hr />
]]></content>
	</entry>
	</feed>
