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

	<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>2006-10-31T03:40:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-31T03:40:20-04:00</updated>

		<published>2006-10-31T03:40:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67587#p67587</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67587#p67587"/>
		<title type="html"><![CDATA[DEOp and DEVoice on Idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67587#p67587"><![CDATA[
Rename the proc names, variables, timers, etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Oct 31, 2006 3:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[chandra Sha]]></name></author>
		<updated>2006-10-31T01:40:32-04:00</updated>

		<published>2006-10-31T01:40:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67581#p67581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67581#p67581"/>
		<title type="html"><![CDATA[DEOp and DEVoice on Idle]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67581#p67581"><![CDATA[
I Found this deop on idle tcl on egghelp arcive<br><blockquote class="uncited"><div>######  configuration #####<br>die "DEOp on Idle STOP"<br># set the interval between idlechecks in minutes<br>set idle_interval "1"<br># set the idle-time an operator must have to get deopped by the bot in minutes<br>set idle_time "3"<br># [0/1] do we want to exclude bots from being idle-deopped?<br># generally a good idea<br>set idle_exclude_bots "1"<br># set channels where idle-deopper should be active seperated by spaces<br># set to " " for all <br>set idle_channels " "<br><br>#########################################################################################<br>## End of configuration ### Do Not edit anything here! ##################################<br>#########################################################################################<br><br><br>bind raw - 317 idlecheck<br><br>proc idlecheck {nick int arg} {<br>  global idle_time idle_channels<br>   set nick [string tolower [lindex $arg 1]]<br>   set idle [string tolower [lindex $arg 2]]<br>   set minutesidle [expr $idle / 60]<br>   if {$minutesidle &gt; $idle_time} {<br>      dccbroadcast "$nick has too much idle"<br>      foreach channel $idle_channels {<br>         putserv "MODE $channel -o $nick"<br>         putserv "NOTICE $nick :You have been idle $idle_time Minutes on $channel Forced DeOp."<br>         putlog "Took op from $nick on $channel (too much idle)"<br>      }<br>    }<br>}<br><br>proc perform_whois { } {<br>  global idle_channels botnick idle_exclude_bots idle_interval<br>    if {$idle_channels == " "} {<br>      set idle_temp [channels]<br>    } else {<br>    set idle_temp $idle_channels<br>    }<br>    foreach chan $idle_temp {<br>       dccbroadcast "Now checking \002$chan\002 for idle"<br>       foreach person [chanlist $chan] { <br>         if { [isop $person $chan]} { <br>           if {$idle_exclude_bots == 1} {<br>             if {(![matchattr [nick2hand $person $chan] b]) &amp;&amp; ($person != $botnick)} { putserv "WHOIS $person $person" }<br>           }<br>           if {$idle_exclude_bots == 0} {<br>              if {$person != $botnick} { putserv "WHOIS $person $person" }<br>           }<br>         } <br>       } <br>    }<br>if {![string match "*time_idle*" [timers]]} {<br> timer $idle_interval perform_whois<br>  }<br>}<br>if {![string match "*time_idle*" [timers]]} {<br> timer $idle_interval perform_whois<br>  }<br>putlog "DEOp on idle - deop.tcl \002LOADED\002!"</div></blockquote>It's work, and then i modify so it can devoice and save it to devoice.tcl<br>                  <blockquote class="uncited"><div>putserv "MODE $channel -v $nick"<br>         putserv "NOTICE $nick :You have been idle $idle_time Minutes on $channel Forced DeVoiced."<br>         putlog "Took voice from $nick on $channel (too much idle)"</div></blockquote>         <blockquote class="uncited"><div>if { [isvoice $person $chan]} { </div></blockquote>That work only if they load one by one ( load only deop.tcl or only devoice.tcl), but if i load together only deop.tcl work. any help me please...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8331">chandra Sha</a> — Tue Oct 31, 2006 1:40 am</p><hr />
]]></content>
	</entry>
	</feed>
