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

	<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>2011-06-22T03:20:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2011-06-22T03:20:33-04:00</updated>

		<published>2011-06-22T03:20:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97063#p97063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97063#p97063"/>
		<title type="html"><![CDATA[A small adjustment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97063#p97063"><![CDATA[
Works great! thanks speechless!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Wed Jun 22, 2011 3:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2011-06-16T21:33:12-04:00</updated>

		<published>2011-06-16T14:10:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97031#p97031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97031#p97031"/>
		<title type="html"><![CDATA[A small adjustment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97031#p97031"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Channelvariable opchan "#Football"# build your exempt list here, use lowercase for matching purposes.variable exempted_from_deop [list "nick1" "nick2" "nick3" "etc"]# Idle time in minutesvariable idletime 60bind time - "* * * *" deop_userif {![info exists oplist]} { set oplist "" }proc deop_user {a b c d e} {global opchan idletime oplist exempted_from_deopset users [lrange [chanlist $opchan] 1 end]foreach user $users {if {[getchanidle $user $opchan] &gt;= $idletime &amp;&amp; [isop $user $opchan] &amp;&amp; ![isbotnick $user] &amp;&amp; [lsearch -exact $exempted_from_deop [string tolower $user]] == -1} {# Oprotate exemption: check if the user is a qualified op. If he/she is then check if without them there# would be any qualified ops left. If not, then do not deop the user (requires oprotate.tcl to be loaded)if {[namespace exists oprotate] &amp;&amp; [channel get $opchan oprotate] &amp;&amp; [oprotate::user_is_qualified_op $opchan $user] &amp;&amp; [oprotate::find_best_qualified_op $opchan $user] == ""} {# You can remove the line below (the putlog, not the return!) if this message is too spammy Winkputlog "oprotate/deop: Not going to deop $user in $opchan because they are the only qualified op left."return}pushmode $opchan "-o" $userlappend oplist [getchanhost $user $opchan]} elseif {[getchanidle $user $opchan] &lt; $idletime &amp;&amp; ![isop $user $opchan] &amp;&amp; [lsearch -exact $oplist [getchanhost $user $opchan]] != -1} {pushmode $opchan "+o" $user}}}########################################################################################defeatWordWrap########################################################################################</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jun 16, 2011 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2011-06-16T11:47:42-04:00</updated>

		<published>2011-06-16T11:47:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97029#p97029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97029#p97029"/>
		<title type="html"><![CDATA[A small adjustment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97029#p97029"><![CDATA[
Hey, need a small adjustment for this script.<br><br>Need an exception for someone using the nick 'ZoD' i.e. the bot won't deop him no matter how long he's idle. please help.<div class="codebox"><p>Code: </p><pre><code># Channelvariable opchan "#Football" # Idle time in minutesvariable idletime 60bind time - "* * * *" deop_userif {![info exists oplist]} { set oplist "" }proc deop_user {a b c d e} {    global opchan idletime oplist    set users [lrange [chanlist $opchan] 1 end]    foreach user $users {        if {[getchanidle $user $opchan] &gt;= $idletime &amp;&amp; [isop $user $opchan] &amp;&amp; ![isbotnick $user]} {            # Oprotate exemption: check if the user is a qualified op. If he/she is then check if without them there            # would be any qualified ops left. If not, then do not deop the user (requires oprotate.tcl to be loaded)            if {[namespace exists oprotate] &amp;&amp; [channel get $opchan oprotate] &amp;&amp; [oprotate::user_is_qualified_op $opchan $user] &amp;&amp; [oprotate::find_best_qualified_op $opchan $user] == ""} {                                # You can remove the line below (the putlog, not the return!) if this message is too spammy ;)                putlog "oprotate/deop: Not going to deop $user in $opchan because they are the only qualified op left."                return            }            pushmode $opchan "-o" $user            lappend oplist [getchanhost $user $opchan]        } elseif {[getchanidle $user $opchan] &lt; $idletime &amp;&amp; ![isop $user $opchan] &amp;&amp; [lsearch -exact $oplist [getchanhost $user $opchan]] != -1} {            pushmode $opchan "+o" $user        }    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Thu Jun 16, 2011 11:47 am</p><hr />
]]></content>
	</entry>
	</feed>
