badnick kicker

By blitzz on May 21, 2009

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 }
}

Comments

Sign in to comment.
Jethro   -  Oct 12, 2009

sunslayer, the point being that there are too many of bad nicks too count, and if you're to cover them all, it'll lead to Armageddon.

 Respond  
sunslayer   -  Oct 12, 2009

@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

 Respond  
Jethro   -  Oct 12, 2009

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.

 Respond  
Cheiron   -  Oct 12, 2009

kicking on chanserv is /cs kick #channel nick .. or /msg chanserv kick #channel nick

 Respond  
silent.nahid   -  Oct 12, 2009

errm...it's a nice script bt how do i kick the user by using chanserv?coz my channel is always set to +Q...so dat we have to kick by using chanserv..

 Respond  
SudsyUncle   -  May 25, 2009
$regex($nick,/(se(x|ks)|(s|f)uck|p(orn|enis)|horny)/i)
 Respond  
blitzz   -  May 25, 2009

:)

 Respond  
WorldDMT   -  May 22, 2009

"nothing happen if u are not op chan"

yes u'll have an error msg so put only "@" before level if u r not op the code wil not execute for nothing

 Respond  
Jethro   -  May 22, 2009

i dont think that 2 is optional the 2 will ban host so !@host isnt same
Yes, that is correct, but I think it bans type 6 without specifying the 2 if I'm not mistaken.

 Respond  
blitzz   -  May 22, 2009

thx @andromeda

 Respond  
blitzz   -  May 22, 2009

u have to see if u are op chan :
= nothing happen if u are not op chan

and u ban the nick only for 302 sec :
= you can change da time if u want

 Respond  
andromeda   -  May 22, 2009

yup. maybe Jethro_ you need 2 test it before u comment it. WorldDMT you look good in regex maybe u can teach me a little about it. :P

 Respond  
WorldDMT   -  May 22, 2009

The 2 is optional, really. Without it, the mirc bans the whole nick!*user@host

i dont think that 2 is optional the 2 will ban host so !@host isnt same

 Respond  
andromeda   -  May 21, 2009

i have been try it and it works nice. its only bans people who matched with da word. i'll give this 4. but use regex is more better. keep it up.

 Respond  
Jethro   -  May 21, 2009

The 2 is optional, really. Without it, the mirc bans the whole nick!*user@host

 Respond  
WorldDMT   -  May 21, 2009

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
  }
}
 Respond  
Jethro   -  May 21, 2009
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.

 Respond  
blitzz   -  May 21, 2009

Essex? owh in tht case, of course you can remove/change the word whatever you want..

 Respond  
Cheiron   -  May 21, 2009

one problem.. you may find nicks like Essex being banned due to the sex match

 Respond  
andromeda   -  May 21, 2009

yeah nice i like simple code. but i why 2 many people hate badnick join their channel.

??????? /me wondering

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.