| View previous topic :: View next topic |
| Author |
Message |
LaMpiR Voice
Joined: 21 Nov 2004 Posts: 21
|
Posted: Sun Aug 07, 2005 5:42 pm Post subject: idle kick ban :) |
|
|
Script that ban regular users on specific channel for idle of 60 sec. Banning him for 5 minutes...
+, % and @ are not included in punishment  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Aug 07, 2005 7:58 pm Post subject: |
|
|
| Code: | set idlekickchan "#channel"
bind time - * check:idle
proc check:idle {args} {
set chan $::idlekickchan
foreach nick [chanlist $chan] {
if {[isvoice $nick $chan] || [isop $nick $chan] || [ishalfop $nick $chan]} {
continue
}
if {[getchanidle $nick $chan] > 1} {
newchanban $chan *!*@[lindex [split [getchanhost $nick $chan] @] 1] IdleKick "Idling more than 1 minute." 5
}
}
} |
this will check for idlers every minute, if idle time is more than a minute then it will ban them for 5 minutes. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Aug 07, 2005 8:42 pm Post subject: |
|
|
| I'm not sure whether we should satisfy such dumb requests - and banning for 60 secs idle (hell, even lag could cause that) is definitely one of the dumbest |
|
| Back to top |
|
 |
LaMpiR Voice
Joined: 21 Nov 2004 Posts: 21
|
Posted: Tue Aug 09, 2005 11:08 am Post subject: |
|
|
| demond wrote: | | I'm not sure whether we should satisfy such dumb requests - and banning for 60 secs idle (hell, even lag could cause that) is definitely one of the dumbest |
Because i need this...
Thank you very much Sir_Fz but it doesn't work
| Code: | set idlekickchan "#pomoc"
bind time - * check:idle
proc check:idle {args} {
set chan $::idlekickchan
foreach nick [chanlist $chan] {
if {[isvoice $nick $chan] || [isop $nick $chan] || [ishalfop $nick $chan]} {
continue
}
if {[getchanidle $nick $chan] > 1} {
newchanban $chan *!*@[lindex [split [getchanhost $nick $chan] @] 1] IdleKick "Idling more than 1 minute." 5
}
}
} |
it just bans the user host | Quote: | | [17:17:43] * Hunter sets mode: +b *!*@glavas.glavati |
it doesn't kick him. Would it be possible just to ban user nick!*@* and kick him also? |
|
| Back to top |
|
 |
Dizzle Op
Joined: 28 Apr 2005 Posts: 109
|
Posted: Wed Aug 10, 2005 2:58 pm Post subject: |
|
|
| Code: | set idlekickchan "#pomoc"
bind time - * check:idle
proc check:idle {args} {
set chan $::idlekickchan
foreach nick [chanlist $chan] {
if {[isvoice $nick $chan] || [isop $nick $chan] || [ishalfop $nick $chan]} {
continue
}
if {[getchanidle $nick $chan] > 1} {
newchanban $chan *!*@[lindex [split [getchanhost $nick $chan] @] 1] IdleKick "Idling more than 1 minute." 5
putkick $chan $nick
}
}
} |
_________________ What's this real life ppl keep talking about ??? And where can I download it ??? |
|
| Back to top |
|
 |
LaMpiR Voice
Joined: 21 Nov 2004 Posts: 21
|
Posted: Wed Aug 10, 2005 3:16 pm Post subject: |
|
|
| Quote: | [21:09:06] * Joins: phyxsius (glanonja@glavas.glavati)
[21:09:14] <@LaMpiR> 21:09:14
[21:09:57] * ColdKeyboard is now known as ColdKeyboard``off
[21:09:59] <@LaMpiR> 21:09:59
[21:10:14] <@LaMpiR> 21:10:14
[21:10:50] <@LaMpiR> !op Hunter
[21:10:50] * [Nevina] sets mode: +o Hunter
[21:10:55] -ChanServ- Access level for Hunter on #pomoc changed to 5.
[21:11:03] * Parts: phyxsius (glanonja@glavas.glavati)
[21:11:04] * Joins: phyxsius (glanonja@glavas.glavati)
[21:12:24] -ChanServ- Access level for Hunter on #pomoc unchanged from 5.
[21:12:26] <@LaMpiR> 21:12:26
[21:13:42] * Hunter sets mode: +b *!*@glavas.glavati |
|
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Wed Aug 10, 2005 9:44 pm Post subject: |
|
|
Well mind you this will remove all psybnc and bnc idlers in your channel, sometimes due to server lag or isp/shellbox lag. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
LaMpiR Voice
Joined: 21 Nov 2004 Posts: 21
|
Posted: Thu Aug 11, 2005 4:26 am Post subject: |
|
|
#Pomoc is help channel and idle is forbiden.
That;s my point but i just bans them... |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Thu Aug 11, 2005 4:48 am Post subject: |
|
|
Getchanidle in my case is not very effective, sometime it doesn't give an idle time if a user joins/parts quickly.
You can bind ctcp FINGER and then check idle time. But sometimes people mostly change their finger replies also I guess. Also sometimes a /whois on a user shows a line how many seconds a user has idled and when he signed on. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
|