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

	<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>2010-09-17T23:40:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[devilsoulblack]]></name></author>
		<updated>2010-09-17T23:40:57-04:00</updated>

		<published>2010-09-17T23:40:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94438#p94438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94438#p94438"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94438#p94438"><![CDATA[
thanks for shared<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4165">devilsoulblack</a> — Fri Sep 17, 2010 11:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-07-15T17:41:25-04:00</updated>

		<published>2010-07-15T17:41:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93555#p93555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93555#p93555"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93555#p93555"><![CDATA[
<blockquote class="uncited"><div>speechles, it will work only on rehash not on restart right?<br><br>Thanks!</div></blockquote>Correct, to have it "remember" what it knows after a .restart would require using an external file to keep track of your $oplist. Using a bind on pre-rehash/restart to trigger a procedure that saves the $oplist. Then when restarting/rehasing you can use this kind of logic ( if {![info exists oplist]} { ...load $oplist from external file here... } ). The ![info exists] part is used to keep it from affecting rehashing.  The $oplist will still exist during rehash.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jul 15, 2010 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-07-15T08:08:51-04:00</updated>

		<published>2010-07-15T08:08:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93543#p93543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93543#p93543"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93543#p93543"><![CDATA[
speechles, it will work only on rehash not on restart right?<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Thu Jul 15, 2010 8:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-07-14T14:36:41-04:00</updated>

		<published>2010-07-14T14:36:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93537#p93537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93537#p93537"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93537#p93537"><![CDATA[
<blockquote class="uncited"><div>tueb, is it possible to edit the script so that when I rehash/restart it, it won't forget who should be opped/deopped on activity/inactivity?</div></blockquote><div class="codebox"><p>Code: </p><pre><code>Change this:variable oplist "" To this:if {![info exists oplist]} { set oplist "" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jul 14, 2010 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-07-14T12:52:18-04:00</updated>

		<published>2010-07-14T12:52:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93534#p93534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93534#p93534"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93534#p93534"><![CDATA[
tueb, is it possible to edit the script so that when I rehash/restart it, it won't forget who should be opped/deopped on activity/inactivity?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Wed Jul 14, 2010 12:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Behemoth]]></name></author>
		<updated>2010-07-20T11:03:43-04:00</updated>

		<published>2010-06-26T10:35:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93417#p93417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93417#p93417"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93417#p93417"><![CDATA[
Hello there.. <br>this script works well<br><br>but one more thing i would like to know... <br>is it possible to add a line where it can exempt some specific ops of specific channels plz ??<br><br>thnkx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9930">Behemoth</a> — Sat Jun 26, 2010 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-06-06T13:53:18-04:00</updated>

		<published>2010-06-06T13:53:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93253#p93253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93253#p93253"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93253#p93253"><![CDATA[
[20:46:57] * Collina sets mode: -o Xabriel<br>[20:52:37] &lt;Xabriel&gt; no games on tonight<br>[20:52:39] &lt;Xabriel&gt; not usedto that<br>[20:52:40] &lt;Xabriel&gt; hrmm<br>[20:52:57] * Collina sets mode: +o Xabriel<br><br>Works, thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Sun Jun 06, 2010 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2010-06-06T05:43:51-04:00</updated>

		<published>2010-06-06T05:43:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93250#p93250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93250#p93250"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93250#p93250"><![CDATA[
i hope this helps:<br><div class="codebox"><p>Code: </p><pre><code>#your channel:variable opchan "#channel"#idle time in minutes:variable idletime 60bind time - "* * * *" deop_uservariable oplist ""proc deop_user {a b c d e} {global opchan idletime oplistset users [lrange [chanlist $opchan] 1 end]    foreach user $users {      if {[getchanidle $user $opchan] &gt;= $idletime &amp;&amp; [isop $user $opchan] &amp;&amp; ![isbotnick $user]} {         putserv "MODE $opchan -o $user"         lappend oplist [getchanhost $user $opchan]      } elseif {[getchanidle $user $opchan] &lt; $idletime &amp;&amp; ![isop $user $opchan]} {         if {[lsearch -exact $oplist [getchanhost $user $opchan]] != -1} {            putserv "MODE $opchan +o $user"         }      }    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Sun Jun 06, 2010 5:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-06-04T14:49:27-04:00</updated>

		<published>2010-06-04T14:49:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93234#p93234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93234#p93234"/>
		<title type="html"><![CDATA[Deop ops on inactivity &amp; Reop on activity]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93234#p93234"><![CDATA[
I need a script that will deop the users on one hour of inactivity and reop them once they are active again (hop a channel, change nick, talks..)<br><br>Please help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Fri Jun 04, 2010 2:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
