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.
Old posts that have not been replied to for several years.
Nucleus
Voice
Posts: 34 Joined: Fri Jul 09, 2004 3:35 am
Post
by Nucleus » Mon May 09, 2005 8:06 am
Code: Select all
[13:33:34] * REALMAN__ is now known as BADNICKHERE
[13:33:35] * ^_Zeus_^ sets mode: +b *REALMAN__*!*@*
[13:33:35] * BADNICKHERE was kicked by ^_Zeus_^ (Bad Nickname)
It bans REALMAN__ and it kicks BADNICKHERE. That gives BADNICKHERE the chance to join once more, and then get banned.
Code: Select all
[14:06:29] * Joins: BADNICKHERE (~fatih_93@81.215.68.20)
[14:06:31] * ^_Zeus_^ sets mode: +b *[censored]___*!*@*
[14:06:31] * BADNICKHERE was kicked by ^_Zeus_^ (Bad Nickname)
This is the script.
Code: Select all
set badnicks [list "*BADNICKHERE*"]
bind join - * ban:bnick
bind nick - * ban:bnick
proc ban:bnick {nick uhost hand chan {nn ""}} {
global badnicks
set bbanmask "*$nick*!*@*"
if {$nn == ""} { set nn $nick }
if {![isbotnick $nick]} {
foreach badnick $badnicks {
if {[string match -nocase $badnick $nn]} {
putquick "MODE $chan +b $bbanmask" -next
putquick "KICK $chan $nick :Bad Nickname" -next
break
}
}
}
}
putlog "=====>> Bad Nickname Protection Loaded"
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon May 09, 2005 8:18 am
Code: Select all
set badnicks [list "*BADNICKHERE*"]
bind join - * ban:bnick
bind nick - * ban:bnick
proc ban:bnick {nick uhost hand chan {nn ""}} {
global badnicks
if {$nn == ""} { set nn $nick }
set bbanmask "*$nn*!*@*"
if {![isbotnick $nick]} {
foreach badnick $badnicks {
if {[string match -nocase $badnick $nn]} {
putquick "MODE $chan +b $bbanmask" -next
putquick "KICK $chan $nick :Bad Nickname" -next
break
}
}
}
}
This should fix it.
Nucleus
Voice
Posts: 34 Joined: Fri Jul 09, 2004 3:35 am
Post
by Nucleus » Mon May 09, 2005 9:03 am
It worked. Thank you.