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

	<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-01-26T22:42:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dfxrick]]></name></author>
		<updated>2010-01-26T22:42:38-04:00</updated>

		<published>2010-01-26T22:42:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91864#p91864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91864#p91864"/>
		<title type="html"><![CDATA[Need help with authorization code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91864#p91864"><![CDATA[
basically after 60 mins i'd like it to remove the flag and unauth the person, but its not and i cant seem to see why its not, any ideas?<div class="codebox"><p>Code: </p><pre><code>proc auth_idle {} {global _auth authflagset idletime 1 set chans [channels] set chan_tot [llength $chans] set chan_num 0 for {set loop 0} {$loop &lt; $chan_tot} {incr loop} {   set nicks [chanlist [lindex $chans $loop] $authflag]   set nickidle 1   set nick_tot [llength $nicks]    for {set loop2 0} {$loop2 &lt; $nick_tot} {incr loop2} {      set idletime [getchanidle [lindex $nicks $loop2] [lindex $chans $loop]]      if {$idletime &gt;= $nickidle} {set nickidle $idletime}      if {($idletime &gt; 60)} {                           set nick [lindex $nicks $loop2]                           set hand [nick2hand [lindex $nicks $loop2]]     if {[hand2idx $hand] == -1} {                           putlog "$nick Idle over 60 minutes. Deauthenticated."                           chattr $hand "-${authflag}"                           putserv "NOTICE $nick :Idle over 60 minutes. Deauthenticated."                                 }                          }                                                                 }                                                  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11079">dfxrick</a> — Tue Jan 26, 2010 10:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
