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

	<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-05-04T05:09:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Tristam]]></name></author>
		<updated>2004-05-04T05:09:57-04:00</updated>

		<published>2004-05-04T05:09:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36096#p36096</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36096#p36096"/>
		<title type="html"><![CDATA[Autovoice with opcheck &amp; timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36096#p36096"><![CDATA[
<blockquote class="uncited"><div>I'd use a proc to do the if/pushmode and just pass the nick+channel name to that proc. eg: <div class="codebox"><p>Code: </p><pre><code>proc modeifneeded {nick chan} {if {![isop $nick $chan]} {pushmode $chan +v $nick}}utimer 5 [list modeifneeded $nick $chan]</code></pre></div></div></blockquote>Thanks a lot! That was the first way I tried to do it.. but I didnt know how to give information from a proc to another.. now it works! thanks! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3881">Tristam</a> — Tue May 04, 2004 5:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-28T05:54:32-04:00</updated>

		<published>2004-04-28T05:54:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35909#p35909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35909#p35909"/>
		<title type="html"><![CDATA[Autovoice with opcheck &amp; timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35909#p35909"><![CDATA[
I guess you want variable substitution before the code is passed to 'utimer'...<br>You'll have to escape every special char that you don't want to take effect at this point and also escape the values stored in the variables (using 'list') because the code will be evaluated once more when the timer runs the code.<div class="codebox"><p>Code: </p><pre><code>utimer 5 "if \{!\[[list isop $nick $chan]\]\} \{[list pushmode $chan +v $nick]\}"</code></pre></div>...what a mess <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>I'd use a proc to do the if/pushmode and just pass the nick+channel name to that proc. eg: <div class="codebox"><p>Code: </p><pre><code>proc modeifneeded {nick chan} {if {![isop $nick $chan]} {pushmode $chan +v $nick}}utimer 5 [list modeifneeded $nick $chan]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Apr 28, 2004 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Tristam]]></name></author>
		<updated>2004-04-27T16:54:35-04:00</updated>

		<published>2004-04-27T16:54:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35893#p35893</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35893#p35893"/>
		<title type="html"><![CDATA[Autovoice with opcheck &amp; timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35893#p35893"><![CDATA[
Ok I know this is probably stupid.. I've been thinking for hours now but I still dont get it, so I might as well try here <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> Dont bother posting "RTMF", believe me, I've tried it, maybe I'm just too stupid, so help a noob!<br><br>Ok, I want to autovoice everyone joining the channel, but when people that have auto-op with L (on QuakeNet) join the channel, L gives them op first, so voicing is not necessary anymore and just results more spam.<br><br>So I want it to chech if the user already has op from L, but it has to be timed a little after then joining, because.. you know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><div class="codebox"><p>Code: </p><pre><code>proc join!rock {nick host hand chan} {if {$chan != "#rock.sas"} { } else {if {![isop $nick $chan]} { pushmode $chan +v $nick } else { } } }</code></pre></div>As amazing as it seems, this does work, now all I need is the timer.<br><div class="codebox"><p>Code: </p><pre><code>proc join!rock {nick host hand chan} {if {$chan != "#rock.sas"} { } else {utimer 5 "if {![isop $nick $chan]}" { pushmode $chan +v $nick } else { } } }</code></pre></div>so I get "Tcl error [join!rock]: wrong # args: should be "utimer seconds command"" with this.. I so confused with all the {'s and }'s all over the place, generally, how to use timer with the command being "if"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3881">Tristam</a> — Tue Apr 27, 2004 4:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
