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

	<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>2005-06-21T15:02:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-21T15:02:11-04:00</updated>

		<published>2005-06-21T15:02:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51202#p51202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51202#p51202"/>
		<title type="html"><![CDATA[can some fix this for me:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51202#p51202"><![CDATA[
use [topic $channel] to save the topic in global variable<br><br>and use <div class="codebox"><p>Code: </p><pre><code> tags to post code here</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 21, 2005 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Atomic]]></name></author>
		<updated>2005-06-21T14:54:30-04:00</updated>

		<published>2005-06-21T14:54:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51201#p51201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51201#p51201"/>
		<title type="html"><![CDATA[excellent]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51201#p51201"><![CDATA[
thank you doom<br><br>but i fixed it already <br><br>do you see any faults int his script<br>your input would be appriciated <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>also any ideas on how i would set the topic <br>back to what it originally was?<br>i have no idea at all.<br><br>thank you for your time you have spent already<br><br>Atomic<br><br>script *<br><br>bind pub o !secureon pub_do_secureon<br>bind pub o !secureoff pub_do_secureoff<br><br>proc pub_do_secureoff {nick host handle channel txt} {<br>putquick "mode $channel -mis"<br>putserv "PRIVMSG $channel :  4CHANNEL IS NO LONGER IN SECURE MODE"<br>putserv "topic $channel :  4 Welcome to $channel"<br>foreach t [utimers] {<br>if [string match *pub_do_secureoff* [lindex $t 1]] {<br>killutimer [lindex $t end]<br>} <br>}<br>return 1<br>} <br><br>proc pub_do_secureon {nick host handle channel txt} {<br>putserv "PRIVMSG $channel :  4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"<br>putquick "MODE $channel +mis"<br>putquick "topic $channel : 4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"<br>set timerid "240"<br>utimer 240 [list pub_do_secureoff $nick $host $handle $channel $txt]<br>return 1<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5117">Atomic</a> — Tue Jun 21, 2005 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-06-21T14:23:20-04:00</updated>

		<published>2005-06-21T14:23:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51198#p51198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51198#p51198"/>
		<title type="html"><![CDATA[can some fix this for me:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51198#p51198"><![CDATA[
Try this<br><div class="codebox"><p>Code: </p><pre><code>bind pub o !secureon pub_do_secureonbind pub o !secureoff pub_do_secureoffproc pub_do_secureoff {nick host handle channel txt} {    putquick "mode $channel -mis"    putserv "PRIVMSG $channel : 4CHANNEL IS NO LONGER IN SECURE MODE"    putserv "topic $channel : 4 Welcome to $channel"    if {[timerexists pub_do_secureoff]!=""} { killtimer [timerexists pub_do_secureoff] }    return}proc pub_do_secureon {nick host handle channel txt} {    putserv "PRIVMSG $channel : 4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"    putquick "MODE $channel +mis"    putquick "topic $channel : 4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"    timer 3 [list pub_do_secureoff $nick $host $handle $channel $txt]    return }</code></pre></div> Not tested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Tue Jun 21, 2005 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Atomic]]></name></author>
		<updated>2005-06-21T12:13:47-04:00</updated>

		<published>2005-06-21T12:13:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51188#p51188</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51188#p51188"/>
		<title type="html"><![CDATA[can some fix this for me:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51188#p51188"><![CDATA[
noob request<br><br>please add a timer that kills the utimer<br>if an op does !secureoff<br><br>obvoisly you guys know the timer continues after it is started<br><br>so the op does !secureoff the script runs the off switch <br><br>but after the timer runs its course it displays the msg again<br>in the !secureoff proc it would be cool if the timer was killed<br>so nothing else happens if the op does !secureoff before the timer ends<br><br>or what would be even better is if the bot notes the topic before it changes it and then after secure off it changes it back to what it was before ... that is way outa my know how... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thank you<br><br>here is the script<br><br>#Commands <br><br>bind pub o !secureon pub_do_secureon<br>bind pub o !secureoff pub_do_secureoff<br><br>proc pub_do_secureoff {nick host handle channel txt} {<br>putquick "mode $channel -mis"<br>putserv "PRIVMSG $channel :  4CHANNEL IS NO LONGER IN SECURE MODE"<br>putserv "topic $channel :  4 Welcome to $channel"<br>return 1<br>} <br><br>proc pub_do_secureon {nick host handle channel txt} {<br>putserv "PRIVMSG $channel :  4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"<br>putquick "MODE $channel +mis"<br>putquick "topic $channel : 4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"<br>timer 3 [list pub_do_secureoff $nick $host $handle $channel $txt]<br>return 1<br>}<br> <br><br>thank you for your help<br><br>Atomic<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5117">Atomic</a> — Tue Jun 21, 2005 12:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
