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.

autokick/ban based on nick pattern

Old posts that have not been replied to for several years.
Locked
m
mp35486
Voice
Posts: 8
Joined: Thu Jun 09, 2005 9:54 am

autokick/ban based on nick pattern

Post by mp35486 »

Hi!

Is there a simple script which will allow eggdrop to autokick and/or ban based on nick pattern?

For instance, I'd like nicks which contain |something as sufix to be kicked for the first time and banned if they appear again...

Thanks!

M.
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Search the tcl archive, im usre there is a script there which you could modify ;p
r0t3n @ #r0t3n @ Quakenet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Code: Select all

#Set your suffix here -- the word after the "|" symbol
set my_suffix "lamer"


bind join - "*" check:nick

proc check:nick {nick uhost hand chan} {
 global my_suffix
  if {![botisop $chan] || [isbotnick $nick]} { return 0 }
   if {[string match -nocase "*|$my_suffix*" $nick]} {
    putserv "MODE $chan +b [lindex [split $uhost @] 1]"
    putserv "KICK $chan $nick :Autokick based on nick pattern"
    }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked