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

	<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>2002-06-19T16:21:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-06-19T16:21:00-04:00</updated>

		<published>2002-06-19T16:21:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8185#p8185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8185#p8185"/>
		<title type="html"><![CDATA[waiting a specified time for a response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8185#p8185"><![CDATA[
Use a bind to catch the response. Use a timer to measure the delay. Use killtimer/killutimer to cancel the timer if someone responds in time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 19, 2002 4:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-19T05:57:00-04:00</updated>

		<published>2002-06-19T05:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8156#p8156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8156#p8156"/>
		<title type="html"><![CDATA[waiting a specified time for a response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8156#p8156"><![CDATA[
I am trying to write a proc within a script that will send a request to an op in the channel, if the op doesnt type "accept" within a set period, then the script moves on to the next op until it either recieves the specified response or has checked all the ops at which point it performs a different operation.<br><br>proc adminMsgReport { nick } {<br>    foreach { hasAdmin [chanlist $botchan] } {<br>if { isop $hasAdmin $botchan } {<br>    #output to admin and wait for response<br>}<br>    }<br>}<br><br>this is what i have so far, but im really not sure how to approach above. (this procedure isnt called by a bind originally). i understand that i shoudld use a timer, but im not sure how to go about catching the response to stop the timer and quit the loop.<br><br>Any help or suggestions would be helpful please <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Wed Jun 19, 2002 5:57 am</p><hr />
]]></content>
	</entry>
	</feed>
