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

	<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-06-27T08:20:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SaW]]></name></author>
		<updated>2007-06-27T08:20:08-04:00</updated>

		<published>2007-06-27T08:20:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73925#p73925</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73925#p73925"/>
		<title type="html"><![CDATA[&quot;set&quot; problem..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73925#p73925"><![CDATA[
thanks nml375.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8617">SaW</a> — Wed Jun 27, 2007 8:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-26T15:54:01-04:00</updated>

		<published>2007-06-26T15:54:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73913#p73913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73913#p73913"/>
		<title type="html"><![CDATA[&quot;set&quot; problem..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73913#p73913"><![CDATA[
gr is a localspace variable (only exists within the instance of the proc when it is invoked).<br><br>Simply put, as soon as your proc exits, it will forget all about any and all variables used within it. You'll have to use globalspace variables for them to persist. either adress them as ::varname (such as "set ::gr somevalue" and "foreach nck $::gr"), or use the <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/global.htm" class="postlink">global</a>-command<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jun 26, 2007 3:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaW]]></name></author>
		<updated>2007-06-26T15:42:06-04:00</updated>

		<published>2007-06-26T15:42:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73912#p73912</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73912#p73912"/>
		<title type="html"><![CDATA[&quot;set&quot; problem..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73912#p73912"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind raw * notice tsnoticeproc tsnotice {from keyword arg} { if {[string match "*Client connecting on port*" $arg]} {  if {[info exists gr]} {   set gr [lindex $arg 9]   utimer 10 [list set gr [lrange $gr 1 end]]   return 0  }  if {[llength $gr] &gt; "1"} {   append gr " [lindex $arg 9]"   utimer 10 [list set gr [lrange $gr 1 end]]    if {[llength $gr] &gt;= "10"} {     foreach nck $gr {     putquick "privmsg SaW: nicks : $nck"    }    unset $gr   }  } }}</code></pre></div>i want to bot msg me if 10 joins in 10 seconds, but it didnt work..<br>i try to see $gr each after joins from dcc with type .set gr<br>but the answer is:<br>bot: [15:40] #SaW# set gr<br>bot: Currently:<br><br>what is the mistake?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8617">SaW</a> — Tue Jun 26, 2007 3:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
