This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

idle kick ban :)

Old posts that have not been replied to for several years.
Locked
L
LaMpiR
Voice
Posts: 21
Joined: Sun Nov 21, 2004 8:55 am

idle kick ban :)

Post by LaMpiR »

Script that ban regular users on specific channel for idle of 60 sec. Banning him for 5 minutes...
+, % and @ are not included in punishment :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

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.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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
L
LaMpiR
Voice
Posts: 21
Joined: Sun Nov 21, 2004 8:55 am

Post by LaMpiR »

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: Select all

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
[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?
D
Dizzle
Op
Posts: 109
Joined: Thu Apr 28, 2005 11:21 am
Contact:

Post by Dizzle »

Code: Select all

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 ???
L
LaMpiR
Voice
Posts: 21
Joined: Sun Nov 21, 2004 8:55 am

Post by LaMpiR »

[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
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
L
LaMpiR
Voice
Posts: 21
Joined: Sun Nov 21, 2004 8:55 am

Post by LaMpiR »

#Pomoc is help channel and idle is forbiden.
That;s my point but i just bans them...
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
Locked