Get_A_Fix Master

Joined: 07 May 2005 Posts: 206 Location: New Zealand
|
Posted: Thu May 29, 2014 1:59 pm Post subject: |
|
|
Depending on how your snotices are piped, it can be relatively easy. You will have to play around with this code, to suit your exact arguments, but it should help you make the script you want. Read this.
Then, you'll want to use a list, like
| Code: |
set badnicks {
"*thisnick*"
"*badnick*"
"*keep*"
"*adding*"
"*withthe*"
"*wildcards*"
}
|
Then, in the codeblock/proc, you'd want something like
| Code: |
foreach checknick $::badnicks {
if {[string match -nocase $checknick $nick]} {
putquick "KILL $nick :You match a Bad Nickname. This is not Permitted on $::network. Please change your nickname to reconnect. (matching: $checknick)"
}
}
|
Hope it works out. _________________ We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals. |
|