egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

idle kick ban :)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
LaMpiR
Voice


Joined: 21 Nov 2004
Posts: 21

PostPosted: Sun Aug 07, 2005 5:42 pm    Post subject: idle kick ban :) Reply with quote

Script that ban regular users on specific channel for idle of 60 sec. Banning him for 5 minutes...
+, % and @ are not included in punishment Smile
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Aug 07, 2005 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 07, 2005 8:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
LaMpiR
Voice


Joined: 21 Nov 2004
Posts: 21

PostPosted: Tue Aug 09, 2005 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Dizzle
Op


Joined: 28 Apr 2005
Posts: 109

PostPosted: Wed Aug 10, 2005 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
LaMpiR
Voice


Joined: 21 Nov 2004
Posts: 21

PostPosted: Wed Aug 10, 2005 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Wed Aug 10, 2005 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
LaMpiR
Voice


Joined: 21 Nov 2004
Posts: 21

PostPosted: Thu Aug 11, 2005 4:26 am    Post subject: Reply with quote

#Pomoc is help channel and idle is forbiden.
That;s my point but i just bans them...
Back to top
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Thu Aug 11, 2005 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber