thanks for the reply wims much aprciated i tried your posted code it didnt seem to trigger tho and no error also perhaps i overcomplicated it a bit

lets say we keep it simple like this before we add more words to look for:

Code

Raw 319:*: {
  if ($regex($3-,/([fs]uck|s[3e]x)/i)) {  
    VAR %bchans = $regml(1)
    VAR %t = $comchan($2,0)
    WHILE (%t) {
      var %chanz1 = $comchan($2,%t) 
      IF ($nick(%chanz1,$me,@&~%)) {
        mode %chanz1 +b $address($2,4)  
        kick %chanz1 $2 your on a banned channel ( $+  $+($chr(35),*,%bchans,*) $+ ) leave it and rejoin.
      }
      DEC %t
    }
  }
}




Last edited by Simo; 14/08/22 08:26 AM.