kick ban badword

By wann135lc on Jan 15, 2012

kick Ban Bad Word on Channel

on @*:text:*:#: {
  ;Start Insert
  if ($nick !isop #) {
    var %SayKick = babi,butuh,kimak,lancau,puki,burit,kote,cipap,fuck

    ;Kick words on the line above this line

    var %SayKickCount = 0
    while ($gettok(%SayKick,0,44) > %SayKickCount) {
      inc %SayKickCount
      if ($gettok(%SayKick,%SayKickCount,44) isin $strip($1-)) {
        var %SayKickHit = Yes
      }
    }
    if (%SayKickHit == Yes) {
      ban # $nick 2
      kick # $nick Banned
    }
  }
  ;End Insert
}

Comments

Sign in to comment.
xbox_gamer1   -  Jan 30, 2012

Here with the reason on it

on @*:text:*:#: {
  ;Start Insert
  if ($nick !isop #) {
    var %SayKick = babi,butuh,kimak,lancau,puki,burit,kote,cipap,fuck

    ;Kick words on the line above this line

    var %SayKickCount = 0
    while ($gettok(%SayKick,0,44) > %SayKickCount) {
      inc %SayKickCount
      if ($gettok(%SayKick,%SayKickCount,44) isin $strip($1-)) {
        var %SayKickHit = Yes
      }
    }
    if (%SayKickHit == Yes) {
      kick # $2 | /mode # -b $2
 .msg $chan $nick your message has been removed!
}
} 
  ;End Insert
}
 Respond  
Jethro   -  Jan 17, 2012

wanna135lc wrote:> where i should put reason kick?The answer to your question was given above, and I'll repeat:

ban -k # $nick 2 Banned
 Respond  
wann135lc   -  Jan 16, 2012

@sKIRc ~ yes..can :)

@Jethro
owh..
so "kick # $nick Banned" i can delete? then where i should put reason kick?

 Respond  
Jethro   -  Jan 16, 2012

ban # $nick 2
kick # $nick Banned

can be shortened to:

ban -k # $nick 2 Banned

The -k switch means to kick

 Respond  
sKIRc   -  Jan 15, 2012

reason banned yah? buleh tukar dop? huhu

 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.