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

	<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>2004-12-06T03:04:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2004-12-06T03:04:02-04:00</updated>

		<published>2004-12-06T03:04:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43555#p43555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43555#p43555"/>
		<title type="html"><![CDATA[weird thing concerning variables and timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43555#p43555"><![CDATA[
thx it works, <br>i did that before but i didn't use [list proc...]<br>i think i kind of understood what it does<br>if anyone has a good tcl scripting tutorial other<br>thank the one by Marijn van Zon i'll be thanksfull<br> if you give me a link or something.<br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Mon Dec 06, 2004 3:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-12-04T09:44:21-04:00</updated>

		<published>2004-12-04T09:44:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43439#p43439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43439#p43439"/>
		<title type="html"><![CDATA[weird thing concerning variables and timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43439#p43439"><![CDATA[
The code passed to utimer is executed in the global namespace, so to avoid name conflicts and polluting the global namespace you should create a second proc that you invoke from the timer...<div class="codebox"><p>Code: </p><pre><code>bind join - * join_amproc join_am {nick host hand chan} {utimer 10 [list join_am2 $nick $host $hand $chan]}proc join_am2 {nick host hand chan} {# add all that other code here}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sat Dec 04, 2004 9:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2004-12-04T06:54:48-04:00</updated>

		<published>2004-12-04T06:54:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43436#p43436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43436#p43436"/>
		<title type="html"><![CDATA[weird thing concerning variables and timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43436#p43436"><![CDATA[
am trying to do this delayed on join message<br>it's not working, i get $chan not defined<br>i did it in other ways but i bumped into another prob<br>with is if 2 users join within less than 10 seconds<br>the last to join gets messaged twice<br>any one can help with that?<br><br><div class="codebox"><p>Code: </p><pre><code>bind join - * join_amproc join_am { nick host hand chan rest } {utimer 10 {      if {![isop $nick $chan] &amp;&amp; $nick != "xx" &amp;&amp; $nick != "yy"   } {       if {((![isbotnick $nick]) &amp;&amp; (![isbotnick [hand2nick $hand $chan]]))} {         if {(([onchan $nick $chan]) &amp;&amp; ("[getchanhost $nick $chan]" == "$host"))  || (![isop $nick $chan])} {            # They still have the nick they joined with.            putserv "PRIVMSG [hand2nick $hand $chan] :Hi, Please \002DO NOT REPLY\002: just checking if you are infected."         } elseif {((![onchan $nick $chan]) &amp;&amp; ([handonchan $hand $chan]) || (![isop [hand2nick $hand $chan] $chan])))} {            # They most likely changed nicks after joining.            putserv "PRIVMSG [hand2nick $hand $chan] :Hi, Please \002DO NOT REPLY\002: just checking if you are infected."             }      }   }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Sat Dec 04, 2004 6:54 am</p><hr />
]]></content>
	</entry>
	</feed>
