Ok, try this...

Code:
on *:start: {
  LoadBadWords
}

on @*:text:*:#: {
  var %c = 1
  while ($hget(BadWords,%c) != $null) {
    if ($hget(BadWords,%c) isin $1-) { Spammer $nick $chan | return }
    inc %c
  }
}
alias Spammer {
  if (m !isin $chan($2).mode) {
    mode $2 +m
    .timermoderated.timer 1 240 { mode $2 -m }
  }
}

alias LoadBadWords {
  if (!$hget(BadWords,0).item) {
    hmake BadWords 10
    hload BadWords BadWords.txt
  }
}

alias AddWords {
  LoadBadWords
  hadd BadWords $calc($hget(BadWords,0).item + 1) $?="Enter a word or phrase"
  hsave BadWords BadWords.txt
}


To add words, just type /AddWords and then enter the word or phrase. Keep doing this until you have all the words you want to use.

Note that because this is set to load the hash table when you start mIRC, you'll either need to restart mIRC after loading this script, or else use /AddWords as that will also load up the table. Or, you can just type /LoadBadWords ... any of those methods will work. If you just load the script and don't use any of those 3 things, you'll get errors. I could have added it to load in other ways, but it's not really worth it as this is only going need that one time. After that, you'll always be starting mIRC, so it isn't a problem.

Any questions, just ask.

PS> I didn't script anything to delete a word or phrase... to do so, just open BadWords.txt (in your mIRC folder) and remove the word/phrase *AND* the number that is on the line *above* it. If you don't remove the number, it will cause problems.


Invision Support
#Invision on irc.irchighway.net