If I understood your request correctly, then you probably wanted to see something like this code:

Code
#####################################################################
#   Name: Check Bad Word v1.0
#   Author: Epic (epicnet@mail.ru, http://epicnet.ru)
#   Description: Checks the entire text of the channel for bad words and kick if found.
#####################################################################

on *:TEXT:*:#:{
  if ($badword($1-)) {
    .timerBADWORD 1 5 bw_kick $chan $nick $v1
  }
}
alias -l bw_kick {
  .kick $1 $2 You are a $+(",$3,") yourself!!!
}
alias -l badword {
  var %bw scumbag,fool,moron,idiot,imbecile,gay,freak
  var %bw_text $remove($strip($1-),?,!,:,;,",.,-,_,$chr(40),$chr(41)$chr(44))
  var %i 1 | while (%i <= $numtok(%bw,44)) { var %bwi $gettok(%bw,%i,44) | if ($istok(%bw_text,%bwi,32)) { return %bwi } | inc %i }
}


Note; This script will work in standard (classic) IRC chats. If your conditions are non-standard, then there is no guarantee that the code will work.



🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples