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

	<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>2006-01-17T21:55:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-17T21:55:10-04:00</updated>

		<published>2006-01-17T21:55:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59507#p59507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59507#p59507"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59507#p59507"><![CDATA[
Well Sir_Fz, it goes to that procedure... thanks for that.<br><br>Only.. It allways say that I haven't got @ in the channel, and then parts.<br><br>Do you have any idea of what I am doing wrong? I guess the code is ok?<br><br>if I do this:<div class="codebox"><p>Code: </p><pre><code>} else {    putquick "PRIVMSG $chan :Nick = $nick"    putquick "PRIVMSG $chan :Chan = $chan"    putquick "PRIVMSG $chan :Leaving channel... (Requester doesn't have ops) \002#bots\002"    channel remove $chan  }</code></pre></div>It does give me the right nickname and channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Tue Jan 17, 2006 9:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-17T19:42:20-04:00</updated>

		<published>2006-01-17T19:42:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59506#p59506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59506#p59506"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59506#p59506"><![CDATA[
<blockquote class="uncited"><div>How do I do this exacly :$<br><br>I have this:<div class="codebox"><p>Code: </p><pre><code>utimer 4 [list check:ops $chan $nick]</code></pre></div>and tried this:<div class="codebox"><p>Code: </p><pre><code>utimer 4 [list check:ops]</code></pre></div>And it MUST go to this procedure:<div class="codebox"><p>Code: </p><pre><code>proc check:ops {nick host hand text} {  if {([isop $nick $chan])} {    putquick "PRIVMSG OperServ :mode $chan +o $botnick"]  } else {    putquick "PRIVMSG $chan :Leaving channel... (Requester doesn't have ops) \002#bots\002"    channel remove $chan  }}</code></pre></div></div></blockquote>Use<div class="codebox"><p>Code: </p><pre><code>utimer 4 [list check:ops $chan $nick]</code></pre></div>and<div class="codebox"><p>Code: </p><pre><code>proc check:ops {chan nick} { global botnick if {([isop $nick $chan])} {  putquick "PRIVMSG OperServ :mode $chan +o $botnick" } else {  putquick "PRIVMSG $chan :Leaving channel... (Requester doesn't have ops) \002#bots\002"  channel remove $chan }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jan 17, 2006 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-17T18:12:45-04:00</updated>

		<published>2006-01-17T18:12:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59502#p59502</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59502#p59502"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59502#p59502"><![CDATA[
As you can read, I allready tried this, but it doesn't work...<br><br>I get these two lines in my error log:<br><div class="codebox"><p>Code: </p><pre><code>[23:10] Tcl error in script for 'timer2':[23:10] extra characters after close-quote</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Tue Jan 17, 2006 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2006-01-17T17:47:04-04:00</updated>

		<published>2006-01-17T17:47:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59496#p59496</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59496#p59496"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59496#p59496"><![CDATA[
Pls read what demond posted again <br><div class="codebox"><p>Code: </p><pre><code>proc check:ops {nick host hand text} {    if {([isop $nick $chan])} {    ......   ......   }}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>........putquick "NOTICE $nick :You invited me to join \002$chan\002. Joining..."putquick "PRIVMSG #bots :Joining \002$chan\002 - Invited in by \002$nick\002"channel add $chanutimer 4 [list check:ops $nick $host $hand $text]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Tue Jan 17, 2006 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-16T22:11:28-04:00</updated>

		<published>2006-01-16T22:11:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59468#p59468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59468#p59468"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59468#p59468"><![CDATA[
so:<br><div class="codebox"><p>Code: </p><pre><code>utimer 4 [list check:ops $nick $host $hand $text]</code></pre></div>All of this?<br><br>I tried this one aswell:<div class="codebox"><p>Code: </p><pre><code>putquick "NOTICE $nick :You invited me to join \002$chan\002. Joining..."putquick "PRIVMSG #bots :Joining \002$chan\002 - Invited in by \002$nick\002"channel add $chanutimer 4 {  if {([isop $nick $chan])} {    putquick "PRIVMSG OperServ :mode $chan +o $botnick"]  } else {    putquick "PRIVMSG $chan :Leaving channel... (Requester doesn't have ops) \002#bots\002"    channel remove $chan  }}</code></pre></div>But that doesn't seem to work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>Anyone?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Mon Jan 16, 2006 10:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-16T22:05:37-04:00</updated>

		<published>2006-01-16T22:05:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59467#p59467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59467#p59467"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59467#p59467"><![CDATA[
you MUST pass to [utimer] all the arguments your proc needs:<div class="codebox"><p>Code: </p><pre><code>proc foo {x y z} {...}...utimer $t [list foo $x $y $z]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Jan 16, 2006 10:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-16T21:49:57-04:00</updated>

		<published>2006-01-16T21:49:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59465#p59465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59465#p59465"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59465#p59465"><![CDATA[
How do I do this exacly :$<br><br>I have this:<div class="codebox"><p>Code: </p><pre><code>utimer 4 [list check:ops $chan $nick]</code></pre></div>and tried this:<div class="codebox"><p>Code: </p><pre><code>utimer 4 [list check:ops]</code></pre></div>And it MUST go to this procedure:<div class="codebox"><p>Code: </p><pre><code>proc check:ops {nick host hand text} {  if {([isop $nick $chan])} {    putquick "PRIVMSG OperServ :mode $chan +o $botnick"]  } else {    putquick "PRIVMSG $chan :Leaving channel... (Requester doesn't have ops) \002#bots\002"    channel remove $chan  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Mon Jan 16, 2006 9:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-16T14:29:50-04:00</updated>

		<published>2006-01-16T14:29:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59459#p59459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59459#p59459"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59459#p59459"><![CDATA[
no difference, they are equivalent, I was a bit late on "Submit" button<br><br>put your <em class="text-italics">if</em> logic in a proc, run that proc by timer<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Jan 16, 2006 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-16T14:25:11-04:00</updated>

		<published>2006-01-16T14:25:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59456#p59456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59456#p59456"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59456#p59456"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>utimer 10 [list putquick "PRIVMSG OperServ :mode $chan +o $botnick"]</code></pre></div></div></blockquote>This 1 works fine. What is the difference with yours demond?<br><br>What is the "official" way?<br><br>And can I build an IF function into a timer? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> Is that possible?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Mon Jan 16, 2006 2:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-16T14:19:24-04:00</updated>

		<published>2006-01-16T14:19:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59455#p59455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59455#p59455"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59455#p59455"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>utimer 10 {putquick "PRIVMSG OperServ :mode $chan +o $botnick"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Jan 16, 2006 2:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2006-01-16T14:13:57-04:00</updated>

		<published>2006-01-16T14:13:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59454#p59454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59454#p59454"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59454#p59454"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>utimer 10 [list putquick "PRIVMSG OperServ :mode $chan +o $botnick"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Mon Jan 16, 2006 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-16T13:20:27-04:00</updated>

		<published>2006-01-16T13:20:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59451#p59451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59451#p59451"/>
		<title type="html"><![CDATA[utimer problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59451#p59451"><![CDATA[
I have this script:<br><div class="codebox"><p>Code: </p><pre><code>putquick "NOTICE $nick :You invited me to join \002$chan\002. Joining..."putquick "PRIVMSG #bots :Joining \002$chan\002 - Invited in by \002$nick\002"channel add $chanutimer 10 [putquick "PRIVMSG OperServ :mode $chan +o $botnick"]</code></pre></div>It is about the last sentence, that utimer.<br>Sometimes it works (it IMMEDIATELY send it to operserv, not 10 seconds), and sometime it doesn't work at all.<br><br>Can anyone explain what I am doing wrong here?<br><br>Thanks in advance,<br><br>T-Xorcist<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Mon Jan 16, 2006 1:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
