This is a simple badnick kicker. It will ban suspect at least 5mins before the ban auto removed.
on *:join:#:{
if *fuck* iswm $nick /ban -ku302 $chan $nick 3 Unallowed nick - Matched 10[fuck] 3Please change your nick before returning. Tq }
if *sex* iswm $nick /ban -ku302 $chan $nick 3 Unallowed nick - Matched 10[sex] 3Please change your nick before returning. Tq }
if *seks* iswm $nick /ban -ku302 $chan $nick 3 Unallowed nick - Matched 10[seks] 3Please change your nick before returning. Tq }
if *suck* iswm $nick /ban -ku302 $chan $nick 3 Unallowed nick - Matched 10[suck] 3Please change your nick before returning. Tq }
if *porn* iswm $nick /ban -ku302 $chan $nick 3 Unallowed nick - Matched 10[porn] 3Please change your nick before returning. Tq }
if *horny* iswm $nick /ban -ku302 $chan $nick 3 Unallowed nick - Matched 10[horny] 3Please change your nick before returning. Tq }
if *penis* iswm $nick /ban -ku302 $chan $nick 3 Unallowed nick - Matched 10[penis] 3Please change your nick before returning. Tq }
}
@jethro
depends on the server your on but most networks don't allow the use of special characters in nicks with, the exception of a few like ` | -
@silent.nahid
on *:join:#:{
if *fuck* iswm $nick cs ban $chan $nick Unallowed nick - Matched 10[fuck] 3Please change your nick before returning. Tq
if *sex* iswm $nick cs ban $chan $nick Unallowed nick - Matched 10[sex] 3Please change your nick before returning. Tq
if *seks* iswm $nick cs ban $chan $nick Unallowed nick - Matched 10[seks] 3Please change your nick before returning. Tq
if *suck* iswm $nick cs ban $chan $nick Unallowed nick - Matched 10[suck] 3Please change your nick before returning. Tq
if *porn* iswm $nick cs ban $chan $nick Unallowed nick - Matched 10[porn] 3Please change your nick before returning. Tq
if *horny* iswm $nick cs ban $chan $nick Unallowed nick - Matched 10[horny] 3Please change your nick before returning. Tq
if *penis* iswm $nick cs ban $chan $nick Unallowed nick - Matched 10[penis] 3Please change your nick before returning. Tq
}
uses chanserv
Actually I don't see the effectiveness of this type of script. The reason being that there are countless bad nicks people will adapt to. Special characters can be used to form a bad nick. People are not stupid and will always find ways to get around things. If you're going to add every single one of them, it can be as daunting and time consuming, not to mention the trouble of converting special characters into ANSI. Of course, if you know a small number of bad nicks that people will definitely use, that's a different story.
hi
the syntaxe not good
if ($v1 iswm $v2) cmd
or
if $v1 iswm $v2 { cmd }
and u have one "}" unless at end of code
u have to see if u are op chan
and u ban the nick only for 302 sec
u have to choice ban the nick always or ban the host temporary
here i'll ban the host for 302sec. when i add "2" before the $nick i'll get it
use if u want a regex
on @*:join:#:{
if ($regex($nick,/(fuck|sex|seks|suck|pron|horny|penis)/i)) {
ban -ku302 # $nick 2 Unallowed nick - Matched 10[ $regml(1) ] 3Please change your nick before returning. Tq
}
}
on *:JOIN:#: {
if $count($nick,fuck,sex,seks,suck,porn,horny,penis) {
ban -ku302 $chan $nick Unallowed nick - Matched 10[seks] 3Please change your nick before returning.
}
}
For some reason, the P word is censored.
Anyway, your script can be a lot shorter with only one if statement and it does the same thing.