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

	<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>2017-08-05T11:17:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Colins05]]></name></author>
		<updated>2017-08-05T11:17:52-04:00</updated>

		<published>2017-08-05T11:17:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106401#p106401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106401#p106401"/>
		<title type="html"><![CDATA[Re: Bugs on tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106401#p106401"><![CDATA[
Merci beaucoup, cette code est vraiment utile<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12707">Colins05</a> — Sat Aug 05, 2017 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[F|irT]]></name></author>
		<updated>2017-07-28T00:31:23-04:00</updated>

		<published>2017-07-28T00:31:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106386#p106386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106386#p106386"/>
		<title type="html"><![CDATA[Bugs on tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106386#p106386"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set list_of_chans "#sukoon" # interval in minutes between checks. set check_interval  5  # allowed time in minutes for an op to be idle. set op_allowed_time 120 # allowed time in minutes for a voiced user to be idle. set vo_allowed_time 60 # nicks to be exempted from Deop set op_exclude_nicks "nick1,nick2,nick3" # nicks to be exempted from devoice set vo_exclude_nicks "nick1,nick2,nick3" set op_exclude_nicks [string tolower $op_exclude_nicks] set vo_exclude_nicks [string tolower $vo_exclude_nicks] proc inactive_checker { chan } {   global op_exclude_nicks vo_exclude_nicks op_allowed_time vo_allowed_time   if {![botisop $chan]} { return 0 }   foreach nk [chanlist $chan] {     set nk [string tolower $nk]     if {[isbotnick $nk] || [onchansplit $nk $chan]} {  continue  }     if {[matchattr [nick2hand $nk $chan] f]} {  continue  }     if {[isop $nk $chan] &amp;&amp; ![string match "*,$nk,*" ",$op_exclude_nicks,"]} {       if {[getchanidle $nk $chan] &gt;= $op_allowed_time} {         putserv "mode $chan -ok $nk Idle.Op"       }     }     if {[isvoice $nk $chan] &amp;&amp; ![string match "*,$nk,*" ",$vo_exclude_nicks,"]} {       if {[getchanidle $nk $chan] &gt;= $vo_allowed_time} {         putserv "mode $chan -vk $nk Idle.Devoice"       }     }   } } proc run_checking_timer { } {   global list_of_chans check_interval   foreach check_chan [split $list_of_chans] {     inactive_checker $check_chan   }   timer $check_interval run_checking_timer } timer $check_interval run_checking_timer</code></pre></div>i check this tcl it was working fine in starting but now it has started problem like .. devoice deop on idel time not working... here is the some result of.<blockquote class="uncited"><div> &lt;(MaSt3r&gt; [12:56:00] Tcl error in script for 'timer22475':<br> &lt;(MaSt3r&gt; [12:56:00] illegal channel: #chan2<br> eXtreme-op has been idle 1hr 42mins 48secs, signed on Tue Jun 13 21:52:24 2017<br>MaSt3r sets mode: -vk eXtreme-op Idle.Devoice<br>[18:01] &lt;F|irT&gt; bot just devoice him after i rehsh the bot<br>[09:06] * MaSt3r sets mode: -ok DaD Idle.Op<br>DaD has been idle 5mins, signed on Sat Jul 22 14:04:48 2017<br>[09:06] * MaSt3r sets mode: -ok ZarNaH Idle.devoice<br>[09:15] ZarNaH has been idle 12mins 31secs, signed on Fri Jul 28 01:03:10 2017</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12521">F|irT</a> — Fri Jul 28, 2017 12:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[F|irT]]></name></author>
		<updated>2017-07-26T19:08:19-04:00</updated>

		<published>2017-07-26T19:08:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106384#p106384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106384#p106384"/>
		<title type="html"><![CDATA[No Bugs, No Error,]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106384#p106384"><![CDATA[
I test This tcl .. result is perfect... No Bugs, No Error, <br>running on DALnet network ..<br><br>Thank you SpiKe^^ to making it rite..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12521">F|irT</a> — Wed Jul 26, 2017 7:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2017-07-26T18:00:40-04:00</updated>

		<published>2017-07-26T18:00:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106383#p106383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106383#p106383"/>
		<title type="html"><![CDATA[Bugs on tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106383#p106383"><![CDATA[
let me know...<br><div class="codebox"><p>Code: </p><pre><code>set list_of_chans "#chan1 #chan2"# interval in minutes between checks.set check_interval  5  # allowed time in minutes for an op to be idle.set op_allowed_time 45# allowed time in minutes for a voiced user to be idle.set vo_allowed_time 10# nicks to be exempted from Deopset op_exclude_nicks "nick1,nick2,nick3"# nicks to be exempted from devoiceset vo_exclude_nicks "nick1,nick2,nick3"set op_exclude_nicks [string tolower $op_exclude_nicks]set vo_exclude_nicks [string tolower $vo_exclude_nicks]proc inactive_checker { chan } {  global op_exclude_nicks vo_exclude_nicks op_allowed_time vo_allowed_time  if {![botisop $chan]} { return 0 }   foreach nk [chanlist $chan] {     set nk [string tolower $nk]    if {[isbotnick $nk] || [onchansplit $nk $chan]} {  continue  }    if {[matchattr [nick2hand $nk $chan] f]} {  continue  }    if {[isop $nk $chan] &amp;&amp; ![string match "*,$nk,*" ",$op_exclude_nicks,"]} {      if {[getchanidle $nk $chan] &gt;= $op_allowed_time} {        putserv "mode $chan -ok $nk Idle.Op"      }    }    if {[isvoice $nk $chan] &amp;&amp; ![string match "*,$nk,*" ",$vo_exclude_nicks,"]} {      if {[getchanidle $nk $chan] &gt;= $vo_allowed_time} {        putserv "mode $chan -vk $nk Idle.Devoice"      }    }  }}proc run_checking_timer { } {  global list_of_chans check_interval   foreach check_chan [split $list_of_chans] {    inactive_checker $check_chan  }  timer $check_interval run_checking_timer}timer $check_interval run_checking_timer</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Jul 26, 2017 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[F|irT]]></name></author>
		<updated>2017-07-15T00:58:05-04:00</updated>

		<published>2017-07-15T00:58:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106368#p106368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106368#p106368"/>
		<title type="html"><![CDATA[Bugs on tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106368#p106368"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set list_of_chans "#chan1 #chan2"global botnick username# interval in minutes between checks.set check_interval  5  # allowed time in minutes for an op to be idle.set op_allowed_time 45# allowed time in minutes for a voiced user to be idle.set vo_allowed_time 10# nicks to be exempted from Deop/devoiceset exclude_nicks "nick1;nick2;nick3;"set exclude_nicks [string tolower $exclude_nicks]proc inactive_checker { chan } {global exclude_nicks op_allowed_time  vo_allowed_time  botnickif {![botisop $chan]} { return 0 } foreach user [chanlist $chan] { set user [string tolower $user]     if {![string match "*$user;*" $exclude_nicks] &amp;&amp; ![matchattr [nick2hand $user $chan] f]  } {if {[isvoice $user $chan] &amp;&amp; ![onchansplit $user $chan] &amp;&amp; ($user != $botnick) &amp;&amp;([getchanidle $user $chan] &gt;= $vo_allowed_time)} { putserv "mode $chan -vk $user Idle.Devoice" }  if {[isop $user $chan] &amp;&amp; ![onchansplit $user $chan] &amp;&amp; ($user != $botnick) &amp;&amp; ([getchanidle $user $chan] &gt;= $op_allowed_time)} { putserv "mode $chan -ok $user Idle.Op" }} }}proc run_checking_timer { } {global list_of_chans check_interval foreach check_chan [split $list_of_chans] {inactive_checker $check_chan}timer $check_interval run_checking_timer}timer $check_interval run_checking_timer</code></pre></div>i found this tcl but this is not proper working .. i got this result when i apply on bot.. [07:49] * NoNSt0p sets mode: -ok NoNSt0p Idle.Op . but deop him/self  but not other's . can any one corret me for this <div class="codebox"><p>Code: </p><pre><code># nicks to be exempted from Deopset exclude_nicks "nick1;nick2;nick3;"# nicks to be exempted from devoiceset exclude_nicks "nick1;nick2;nick3;"</code></pre></div>if it can be like this so will be thankfull.<br><br>F|irT<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12521">F|irT</a> — Sat Jul 15, 2017 12:58 am</p><hr />
]]></content>
	</entry>
	</feed>
