| View previous topic :: View next topic |
| Author |
Message |
asel Voice
Joined: 08 Jul 2006 Posts: 3
|
Posted: Sat Jul 08, 2006 2:40 am Post subject: Kick some type of nick. |
|
|
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. |
|
| Back to top |
|
 |
avilon Halfop

Joined: 13 Jul 2004 Posts: 64 Location: Germany
|
Posted: Sat Jul 08, 2006 10:40 am Post subject: |
|
|
| Code: | 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."
}
} |
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Jul 08, 2006 7:50 pm Post subject: |
|
|
And when the nick rejoins, it will be banned again. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
avilon Halfop

Joined: 13 Jul 2004 Posts: 64 Location: Germany
|
Posted: Sat Jul 08, 2006 9:26 pm Post subject: |
|
|
| I don't see a problem there really?! |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Jul 08, 2006 9:34 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jul 09, 2006 5:24 am Post subject: |
|
|
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... _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Sun Jul 09, 2006 6:49 am Post subject: |
|
|
tell your users to think of better nicknames  |
|
| Back to top |
|
 |
|