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

	<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>2016-12-06T02:51:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2016-12-06T02:51:12-04:00</updated>

		<published>2016-12-06T02:51:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105601#p105601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105601#p105601"/>
		<title type="html"><![CDATA[add exceptions in idle tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105601#p105601"><![CDATA[
Strange, it has worked for me in the past. Alternatively, as the exemptlist is a list, you could lsearch to match.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Tue Dec 06, 2016 2:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2016-12-05T20:20:31-04:00</updated>

		<published>2016-12-05T20:20:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105600#p105600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105600#p105600"/>
		<title type="html"><![CDATA[add exceptions in idle tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105600#p105600"><![CDATA[
tnx SpiKe^^ ill try that and test it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 05, 2016 8:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-12-05T18:08:18-04:00</updated>

		<published>2016-12-05T18:08:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105599#p105599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105599#p105599"/>
		<title type="html"><![CDATA[add exceptions in idle tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105599#p105599"><![CDATA[
That won't work, that's not how string match wants its stuff...<br><br>I might remove this entire line<div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase $exemptlist $nick] || [string match $exemptlist [getchanhost $nick $channel]]} {return} </code></pre></div>and replace it with something more like<div class="codebox"><p>Code: </p><pre><code>  set uhost [getchanhost $nick $channel]  foreach mask $exemptlist {    if {[string match -nocase $mask $nick!$uhost]} {  return  }  }</code></pre></div>Then in the exempt list setting use fully qualified irc masks  (nick!username@host)<br><br>so to exempt a nick:   somenick!*<br>exempt a masked host:  *@*.some.domain.com<br>etc..................<br><br>goodluck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Dec 05, 2016 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2016-12-05T13:56:41-04:00</updated>

		<published>2016-12-05T13:56:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105598#p105598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105598#p105598"/>
		<title type="html"><![CDATA[add exceptions in idle tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105598#p105598"><![CDATA[
tested it it doesnt seem to exempt<br><br>this is what i have so far:<br><div class="codebox"><p>Code: </p><pre><code># Set nickname or host exemptionsset exemptlist {  "^__^"  "*.I.Am.Me."} # - Using -# Type in partyline:# .chanset #help maxidle &lt;time in minutes&gt;# If set 0 channel's check will be ignored.# Punishing method (1 = Kick, 2 = Kick/Ban)set pmethod 2# Ban time in minutes.set bantime 1# Kick's reasonset aidlereason "14,1IPT Account help ONLY! state your user name and issue then wait patiently. Do NOT spam the channel. 4NO IDLING! 4DO NOT ASK FOR INVITES HERE! DO NOT PM ANYONE HERE!"# Exception's flagsset flags f|f# Kick op? (0 = Yes, 1 = No)set kickop 1# Kick voice? (0 = Yes, 1 = No)set kickvoice 1#Check for idling users every minutes.bind time - * aidle:checkidlesetudef int maxidleproc aidle:checkidle { min hour day month year } {global botnick flags kickop kickvoiceforeach chan [channels] {if {![channel get $chan "maxidle"]} {continue}foreach nick [chanlist $chan] {if {$nick == $botnick} {continue}if {([isop $nick $chan]) &amp;&amp; ($kickop)} {continue}if {([isvoice $nick $chan]) &amp;&amp; ($kickvoice)} {continue}if {[matchattr [nick2hand $nick] $flags] == 1} {continue}if {[getchanidle $nick $chan] &gt; [channel get $chan "maxidle"]} {aidle:punish $chan $nick [channel get $chan "maxidle"]}}}}proc aidle:punish { channel nick idletime } {#global pmethod aidlereason bantimeglobal exemptlist pmethod aidlereason bantime if {[string match -nocase $exemptlist $nick] || [string match $exemptlist [getchanhost $nick $channel]]} {return} regsub -all "%idletime" $aidlereason $idletime aidlereasonswitch $pmethod {1 { putquick "MODE $channel -qaho $nick $nick $nick $nick"  -next }3 {  putserv "KICK $channel $nick :$aidlereason"  }2 {       #putserv "KICK $channel $nick :$aidlereason"                        # putquick "MODE $channel -qaho $nick $nick $nick $nick"        putquick "MODE $channel -qaho $nick $nick $nick $nick"  -next                        #utimer 300 "pushmode $channel -b *!*@[lindex [split [getchanhost $nick $channel] @] 1]"  }}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 05, 2016 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2016-12-05T11:41:55-04:00</updated>

		<published>2016-12-05T11:41:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105595#p105595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105595#p105595"/>
		<title type="html"><![CDATA[add exceptions in idle tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105595#p105595"><![CDATA[
thnx Get_A_Fix edited it and testing will let you know about results<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 05, 2016 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2016-12-04T21:30:09-04:00</updated>

		<published>2016-12-04T21:30:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105584#p105584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105584#p105584"/>
		<title type="html"><![CDATA[add exceptions in idle tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105584#p105584"><![CDATA[
First, set the exempt list in the settings area.<br><div class="codebox"><p>Code: </p><pre><code># Set nickname or host exemptionsset exemptlist {  "bob"  "*.host.mask.etc"}</code></pre></div>Then, you'd want to add the argument to your list of globals in the aidle:punish proc.<br><div class="codebox"><p>Code: </p><pre><code>global exemptlist pmethod aidlereason bantime</code></pre></div>And finally, a string match to the aidle:punish procedure.<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase $exemptlist $nick] || [string match $exemptlist [getchanhost $nick $channel]]} {return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sun Dec 04, 2016 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2016-12-04T11:29:54-04:00</updated>

		<published>2016-12-04T11:29:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105573#p105573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105573#p105573"/>
		<title type="html"><![CDATA[add exceptions in idle tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105573#p105573"><![CDATA[
how to add exeptions for nicks/hosts in this anti idle tcl<br><div class="codebox"><p>Code: </p><pre><code># - Using -# Type in partyline:# .chanset #help maxidle &lt;time in minutes&gt;# If set 0 channel's check will be ignored.# Punishing method (1 = Kick, 2 = Kick/Ban)set pmethod 2# Ban time in minutes.set bantime 1# Kick's reasonset aidlereason "4NO IDLING! "# Exception's flagsset flags f|f# Kick op? (0 = Yes, 1 = No)set kickop 1# Kick voice? (0 = Yes, 1 = No)set kickvoice 1#Check for idling users every minutes.bind time - * aidle:checkidlesetudef int maxidleproc aidle:checkidle { min hour day month year } {global botnick flags kickop kickvoiceforeach chan [channels] {if {![channel get $chan "maxidle"]} {continue}foreach nick [chanlist $chan] {if {$nick == $botnick} {continue}if {([isop $nick $chan]) &amp;&amp; ($kickop)} {continue}if {([isvoice $nick $chan]) &amp;&amp; ($kickvoice)} {continue}if {[matchattr [nick2hand $nick] $flags] == 1} {continue}if {[getchanidle $nick $chan] &gt; [channel get $chan "maxidle"]} {aidle:punish $chan $nick [channel get $chan "maxidle"]}}}}proc aidle:punish { channel nick idletime } {global pmethod aidlereason bantimeregsub -all "%idletime" $aidlereason $idletime aidlereasonswitch $pmethod {1 { putquick "MODE $channel -qaho $nick $nick $nick $nick"  -next }3 {  putserv "KICK $channel $nick :$aidlereason"  }2 {       #putserv "KICK $channel $nick :$aidlereason"                        # putquick "MODE $channel -qaho $nick $nick $nick $nick"        putquick "MODE $channel -qaho $nick $nick $nick $nick"  -next                        #utimer 300 "pushmode $channel -b *!*@[lindex [split [getchanhost $nick $channel] @] 1]"  }}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 04, 2016 11:29 am</p><hr />
]]></content>
	</entry>
	</feed>
