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

	<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-03-09T08:01:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-03-09T08:01:15-04:00</updated>

		<published>2003-03-09T08:01:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17590#p17590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17590#p17590"/>
		<title type="html"><![CDATA[opcheck proc is wrong]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17590#p17590"><![CDATA[
hi there!<br><br>I am coding an opcheck function, which basically worked fine for me:<br><div class="codebox"><p>Code: </p><pre><code>### opcheck procproc call_opcheck {nick hand chan misc1 misc2} {        global priv botnick home lbn hub        set line ""        set intiv ""        msg $home "\002Op Check\002 Command Issued, if nothing returned, all ok! "        foreach channel [channels] {                set lchannel [string tolower $channel]                if { [botisop $channel ] == 0 } {                        msg $home "$channel"                        msg $channel "\002Warning:\002 I am not opped, please op me, otherwise I'll part."                        set misc2 "timer 3 call_opcheck2"                        call_opcheck2 $nick $handle $chan $misc1 $misc2                }        }}### opcheck2 procproc call_opcheck2 {nick hand chan misc1 misc2} {        killtimer $misc2        if { [botisop $chan ] == 0 } {                msg $chan "You still haven't opped me, I'll part now..."                msg $home "Parting $chan (Opcheck failed)"                channel remove $chan        }}</code></pre></div>what isn't working, is the thing with the timer.<br>I want the bot to start a timer (3 minutes for example) then check again if it is opped. If not, it should part.<br><br>what is wrong with my proc? Oh and I am not that good at tcl coding,... yet <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>thanks for any help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Sun Mar 09, 2003 8:01 am</p><hr />
]]></content>
	</entry>
	</feed>
