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.

Kick some type of nick.

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
a
asel
Voice
Posts: 3
Joined: Sat Jul 08, 2006 2:33 am

Kick some type of nick.

Post by asel »

I need a script to kick some type of nick:
Ex: Dona10 John11 Mona23 Kali27 Laura13
To kick evrey nick like this namenumber
and if somone /msg botnick !unban
to unban that ip nick ;) this is a solution for
some drone nick. Place help me.
Thanx.
User avatar
avilon
Halfop
Posts: 64
Joined: Tue Jul 13, 2004 6:58 am
Location: Germany

Post by avilon »

Code: Select all

set droneRegEx {^[A-Z][a-z]{3,}[12][0-9]$}

bind join - * droneKick

proc droneKick {nick host hand chan} {
    if { [regexp -- ${::droneRegEx} $nick] } {
        newban $nick!*@* $::botnick "Your nick matches a pattern typical for certain spam drones."
    }
}

bind msg - !unban droneUnBan

proc droneUnBan {nick host hand arg} {
    if { [regexp -- ${::droneRegEx} $nick] } {
        killban $nick!*@*
        puthelp "NOTICE $nick :Done."
    }
}
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

And when the nick rejoins, it will be banned again.
User avatar
avilon
Halfop
Posts: 64
Joined: Tue Jul 13, 2004 6:58 am
Location: Germany

Post by avilon »

I don't see a problem there really?!
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

avilon wrote:I don't see a problem there really?!
asel wrote:and if somone /msg botnick !unban
to unban that ip nick
.. which I gather Sir_Fz was referring to.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

1) Dona12 joins the channel and gets banned
2) Dona12 is not a bot, so she msgs the bot !unban in order to be able to join the channel again.
3) Dona12 joins again, and she gets banned again.
4) The loop continues...
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

tell your users to think of better nicknames :)
Post Reply