Hey smile
i use this script for banning spam bots in my channel. Care the script triggers when it find one of the words in the whole text!


Code:
on *:LOAD:{
/set %Bannword Word1 Word2 Word3 Word4 Word5 Word6
}

ON @*:TEXT:*:#: {
  IF ($nick !isop #) {
    VAR %i = 0
    WHILE (%i < $numtok(%Bannword,32)) {
      inc %i
      var %current.banword = $gettok(%Bannword,%i,32)
      if (%current.banword isin $strip($1-)) {
      msg # [BANNED]: $nick (Blacklisted Spam)
      msg # .ban $nick
      return
      }
    }
  }
}




Just replace the Word 1 Word2... with your own badwords (i have more then 30!), you can also delete the first msg so it will only ban w.o. a message in the chat smile

Last edited by Krawalli; 10/04/15 03:52 PM.