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

	<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>2009-08-11T10:47:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[unb0rn]]></name></author>
		<updated>2009-08-11T10:47:59-04:00</updated>

		<published>2009-08-11T10:47:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89845#p89845</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89845#p89845"/>
		<title type="html"><![CDATA[Kick users with idle, only if you use a command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89845#p89845"><![CDATA[
Will try that one, surely will work.<br><br>Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10194">unb0rn</a> — Tue Aug 11, 2009 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-08-11T10:45:00-04:00</updated>

		<published>2009-08-11T10:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89844#p89844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89844#p89844"/>
		<title type="html"><![CDATA[Kick users with idle, only if you use a command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89844#p89844"><![CDATA[
Heh! Yes, that was pretty stupid. It is because the bot has been idle too. The following modification should ignore the botnick.<br><br>Note to self. Must not code bugs.<br><div class="codebox"><p>Code: </p><pre><code># set here the user flag(s) required to use the commandset vIdleFlag m# set here the command triggerset vIdleTrigger !# set here the user flag required in order to be exempt from a kick/banset vIdleExempt o# set here the mode of operation# 1 = kick only# 2 = ban and kickset vIdleMode 1# set here the maximum allowed idle time (minutes)set vIdleTime 60proc pIdleTrigger {} {    global vIdleTrigger    return $vIdleTrigger}bind PUB $vIdleFlag [pIdleTrigger]idle pIdleCheckproc pIdleCheck {nick uhost hand chan text} {    global vIdleExempt vIdleMode vIdleTime    if {[botisop $chan]} {        foreach user [chanlist $chan] {            if {![isbotnick $user]} {                if {![matchattr [nick2hand $user] $vIdleExempt $chan]} {                    if {[getchanidle $user $chan] &gt; $vIdleTime} {                        switch -- $vIdleMode {                            1 {putkick $chan $user "idle time exceeded"}                            2 {                                set host [maskhost [getchanhost $user $chan]]                                pushmode $chan +b $host                                flushmode $chan                                utimer 3 [list pIdleKick $chan $user]                            }                            default {}                        }                    }                }            }        }    }    return 0}proc pIdleKick {chan user} {    if {[onchan $user $chan]} {        putkick $chan $user "idle time exceeded"    }    return 0}# eof</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Aug 11, 2009 10:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[unb0rn]]></name></author>
		<updated>2009-08-11T10:10:57-04:00</updated>

		<published>2009-08-11T09:45:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89840#p89840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89840#p89840"/>
		<title type="html"><![CDATA[Kick users with idle, only if you use a command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89840#p89840"><![CDATA[
Amazing, thank you very much.<br>Oh, and by the way, why does the bot always kick's himself, and only then starts to kick the others users?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10194">unb0rn</a> — Tue Aug 11, 2009 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-08-07T21:25:44-04:00</updated>

		<published>2009-08-07T21:25:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89768#p89768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89768#p89768"/>
		<title type="html"><![CDATA[Kick users with idle, only if you use a command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89768#p89768"><![CDATA[
Sorry I made a blunder. I used the uhost of the public command user instead of the host of the idler.<br><br>Corrected below.<br><div class="codebox"><p>Code: </p><pre><code># set here the user flag(s) required to use the commandset vIdleFlag m# set here the command triggerset vIdleTrigger !# set here the user flag required in order to be exempt from a kick/banset vIdleExempt o# set here the mode of operation# 1 = kick only# 2 = ban and kickset vIdleMode 1# set here the maximum allowed idle time (minutes)set vIdleTime 60proc pIdleTrigger {} {    global vIdleTrigger    return $vIdleTrigger}bind PUB $vIdleFlag [pIdleTrigger]idle pIdleCheckproc pIdleCheck {nick uhost hand chan text} {    global vIdleExempt vIdleMode vIdleTime    if {[botisop $chan]} {        foreach user [chanlist $chan] {            if {![matchattr [nick2hand $user] $vIdleExempt $chan]} {                if {[getchanidle $user $chan] &gt; $vIdleTime} {                    switch -- $vIdleMode {                        1 {putkick $chan $user "idle time exceeded"}                        2 {                            set host [maskhost [getchanhost $user $chan]]                            pushmode $chan +b $host                            flushmode $chan                            utimer 3 [list pIdleKick $chan $user]                        }                        default {}                    }                }            }        }    }    return 0}proc pIdleKick {chan user} {    if {[onchan $user $chan]} {        putkick $chan $user "idle time exceeded"    }    return 0}# eof</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Aug 07, 2009 9:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-08-07T14:10:56-04:00</updated>

		<published>2009-08-07T14:10:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89767#p89767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89767#p89767"/>
		<title type="html"><![CDATA[Kick users with idle, only if you use a command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89767#p89767"><![CDATA[
Untested but I think it's OK<br><div class="codebox"><p>Code: </p><pre><code># set here the user flag(s) required to use the commandset vIdleFlag m# set here the command triggerset vIdleTrigger !# set here the user flag required in order to be exempt from a kick/banset vIdleExempt o# set here the mode of operation# 1 = kick only# 2 = ban and kickset vIdleMode 1# set here the maximum allowed idle time (minutes)set vIdleTime 60proc pIdleTrigger {} {    global vIdleTrigger    return $vIdleTrigger}bind PUB $vIdleFlag [pIdleTrigger]idle pIdleCheckproc pIdleCheck {nick uhost hand chan text} {    global vIdleExempt vIdleMode vIdleTime    if {[botisop $chan]} {        foreach user [chanlist $chan] {            if {![matchattr [nick2hand $user] $vIdleExempt $chan]} {                if {[getchanidle $user $chan] &gt; $vIdleTime} {                    switch -- $vIdleMode {                        1 {putkick $chan $user "idle time exceeded"}                        2 {                            pushmode $chan +b *!$uhost                            flushmode $chan                            utimer 3 [list pIdleKick $chan $user]                        }                        default {}                    }                }            }        }    }    return 0}proc pIdleKick {chan user} {    if {[onchan $user $chan]} {        putkick $chan $user "idle time exceeded"    }    return 0}# eof</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Aug 07, 2009 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[unb0rn]]></name></author>
		<updated>2009-08-07T07:52:54-04:00</updated>

		<published>2009-08-07T07:52:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89766#p89766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89766#p89766"/>
		<title type="html"><![CDATA[Kick users with idle, only if you use a command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89766#p89766"><![CDATA[
Well, ill try to keep it simple, i already search the site for it, but can't find one like what i want.<br>I want a tcl that ONLY if a use a command like !idle , it detect's if someone have an idle bigger that, let's say, 1 hour, and kick's them from the channel, and if possible, not kicking users with Global Flag like "o".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10194">unb0rn</a> — Fri Aug 07, 2009 7:52 am</p><hr />
]]></content>
	</entry>
	</feed>
