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

	<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-10-21T00:30:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-21T00:30:49-04:00</updated>

		<published>2003-10-21T00:30:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28740#p28740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28740#p28740"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28740#p28740"><![CDATA[
<blockquote class="uncited"><div>this script is running now in a room with<br>100's of lines of text being read by the eggdrop.<br>there are NO error messages unless there are<br>characters as i described.<br>the error messages happen when the text is posted 1 time.<br><br>there is no other common denominator.</div></blockquote>and yet we still have not seen the output of '.tcl set errorInfo' when an error occurs................. .......... .............. ..............<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Oct 21, 2003 12:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-21T00:28:31-04:00</updated>

		<published>2003-10-21T00:28:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28739#p28739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28739#p28739"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28739#p28739"><![CDATA[
this script is running now in a room with<br>100's of lines of text being read by the eggdrop.<br>there are NO error messages unless there are<br>characters as i described.<br>the error messages happen when the text is posted 1 time.<br><br>there is no other common denominator.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Tue Oct 21, 2003 12:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-21T00:24:33-04:00</updated>

		<published>2003-10-21T00:24:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28738#p28738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28738#p28738"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28738#p28738"><![CDATA[
<blockquote class="uncited"><div>if i chage the "rp:dec" as you suggested<br>the error messages will stop, but the bug still remains.<br>and that is, the var is NOT being set when<br>those characters are present in the text.<br><br>any character that is not a-Z 0-9 seems to<br>stop the script from setting the var</div></blockquote> I can tell you that is not the case... as you should see from your own code... the error was generated from the timer call... your variable IS being set, as your code:<br><div class="codebox"><p>Code: </p><pre><code>    if {![info exists rp_ctr($text)]} {set rp_ctr($text) 0}     incr rp_ctr($text) 1     utimer $rp_seconds [list rp:dec $text] </code></pre></div>did NOT generate any error for you.  If it was NOT being set, your "incr" statement would be error'ing on you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Oct 21, 2003 12:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-21T00:18:04-04:00</updated>

		<published>2003-10-21T00:18:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28737#p28737</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28737#p28737"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28737#p28737"><![CDATA[
if i chage the "rp:dec" as you suggested<br>the error messages will stop, but the bug still remains.<br>and that is, the var is NOT being set when<br>those characters are present in the text.<br><br>any character that is not a-Z 0-9 seems to<br>stop the script from setting the var<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Tue Oct 21, 2003 12:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-20T18:34:09-04:00</updated>

		<published>2003-10-20T18:34:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28729#p28729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28729#p28729"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28729#p28729"><![CDATA[
it happens when un-special characters <br>are in the text like ":" . "&gt;&gt;" , or "=)" are in the text<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 20, 2003 6:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-20T18:32:49-04:00</updated>

		<published>2003-10-20T18:32:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28728#p28728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28728#p28728"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28728#p28728"><![CDATA[
I still do not see a new example yet.... with the text that triggers the script, and with the generated error, and the output of '.tcl set errorInfo'....<br><br>are you sure you want help?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Oct 20, 2003 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-20T18:34:30-04:00</updated>

		<published>2003-10-20T18:24:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28727#p28727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28727#p28727"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28727#p28727"><![CDATA[
edited<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 20, 2003 6:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-20T18:19:44-04:00</updated>

		<published>2003-10-20T18:19:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28726#p28726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28726#p28726"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28726#p28726"><![CDATA[
<blockquote class="uncited"><div>like i said before:<br>i am getting these erors when the text is only posted 1 time, <br>and only when there are special charaters in the text.</div></blockquote>Then I SUGGEST you give a different example, because the example you DID give does NOT contain any special characters that would result in any error.<br><br>Also, when the error occurs, doing '.tcl set errorInfo' in the partyline would also be of some benefit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Oct 20, 2003 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-20T18:11:48-04:00</updated>

		<published>2003-10-20T18:11:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28724#p28724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28724#p28724"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28724#p28724"><![CDATA[
like i said before:<br>i am getting these erors when the text is only posted 1 time, <br>and only when there are special charaters in the text.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 20, 2003 6:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-20T17:47:12-04:00</updated>

		<published>2003-10-20T17:47:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28723#p28723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28723#p28723"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28723#p28723"><![CDATA[
<blockquote class="uncited"><div>this is part of a 300 line script, this is the last bug.<br>I would like to find out why i am getting these<br>erors when the text is only posted 1 time,<br>and only when there are special charaters<br>in the text.</div></blockquote>Welp...<br>the error:<blockquote class="uncited"><div>&lt;Zipp&gt; [23:32] Tcl error in script for 'timer395': <br>&lt;Zipp&gt; [23:32] can't read "rp_ctr(Away Duration: 10hrs 29mins 57secs «Log: ON»)": no such element in array </div></blockquote>Is generated from your 'incr rp_ctrl($text) -1' call.... not the unset...<br><br>I would change your proc to:<br><div class="codebox"><p>Code: </p><pre><code>proc rp:dec {text} {   global rp_ctr  if {[info exists rp_ctr($text)]} {    incr rp_ctr($text) -1     if {$rp_ctr($text) &lt;= "0"} {unset rp_ctr($text)}  }  return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Oct 20, 2003 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-20T17:42:03-04:00</updated>

		<published>2003-10-20T17:42:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28722#p28722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28722#p28722"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28722#p28722"><![CDATA[
this is part of a 300 line script, this is the last bug.<br>I would like to find out why i am getting these<br>erors when the text is only posted 1 time,<br>and only when there are special charaters<br>in the text.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 20, 2003 5:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-20T17:27:01-04:00</updated>

		<published>2003-10-20T17:27:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28721#p28721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28721#p28721"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28721#p28721"><![CDATA[
If all you are after is a repeat kicking script, my norepeats.tcl is in the archive here, which you can take a look at.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Oct 20, 2003 5:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-20T17:21:35-04:00</updated>

		<published>2003-10-20T17:21:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28720#p28720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28720#p28720"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28720#p28720"><![CDATA[
this is happening even when the text is posted <br>1 time , other text works fine, i do see what you<br>are saying ... just tell me this,<br>how are you suppose to make a repeat<br>kicker without using a proc that unsets ALL vars?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 20, 2003 5:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-20T17:17:10-04:00</updated>

		<published>2003-10-20T17:17:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28719#p28719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28719#p28719"/>
		<title type="html"><![CDATA[Re: can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28719#p28719"><![CDATA[
<blockquote class="uncited"><div>I seem to running into a problem with special characters<br>: = ¶ and who knows what other charcters.<br>all other lines are working just fine<br><div class="codebox"><p>Code: </p><pre><code>    if {![info exists rp_ctr($text)]} {set rp_ctr($text) 0}    incr rp_ctr($text) 1    utimer $rp_seconds [list rp:dec $text]proc rp:dec {text} {  global rp_ctr  incr rp_ctr($text) -1  if {$rp_ctr($text) &lt;= "0"} {unset rp_ctr($text)}  return 0}</code></pre></div>&lt;Zipp&gt; [23:32] Tcl error in script for 'timer395':<br>&lt;Zipp&gt; [23:32] can't read "rp_ctr(Away Duration: 10hrs 29mins 57secs «Log: ON»)": no such element in array<br><br>any ideas?<br><br>thanks for the help</div></blockquote> The problem is not with the chars, it is with repeat calls to rp:dec via the utimer with the same text.  Perhaps you should add a check to see if you already have a utimer call for the text in question?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Oct 20, 2003 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-20T17:00:10-04:00</updated>

		<published>2003-10-20T17:00:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28716#p28716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28716#p28716"/>
		<title type="html"><![CDATA[can not unset var, no such var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28716#p28716"><![CDATA[
I seem to running into a problem with special characters<br>: = ¶ and who knows what other charcters.<br>all other lines are working just fine<br><div class="codebox"><p>Code: </p><pre><code>    if {![info exists rp_ctr($text)]} {set rp_ctr($text) 0}    incr rp_ctr($text) 1    utimer $rp_seconds [list rp:dec $text]proc rp:dec {text} {  global rp_ctr  incr rp_ctr($text) -1  if {$rp_ctr($text) &lt;= "0"} {unset rp_ctr($text)}  return 0}</code></pre></div>&lt;Zipp&gt; [23:32] Tcl error in script for 'timer395':<br>&lt;Zipp&gt; [23:32] can't read "rp_ctr(Away Duration: 10hrs 29mins 57secs «Log: ON»)": no such element in array<br><br>any ideas?<br><br>thanks for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 20, 2003 5:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
