Jethro commented on a Page, Badwords detection engine  -  Oct 15, 2011

If this is only for one event, you can save yourself an alias. Why all the global variables and the else statement? This is a lot cleaner and easier to look at:

on *:TEXT:*:#:{ 
  var %s = 1, %f = badwords.txt
  while (%s <= $lines(%f)) {
    if ($read(%f,n,%s) isin $1-) {
      ; your command here
    }
    inc %s
  }
}
NoStRuM  -  Jan 02, 2014

There may be one that also has a message tag before the ban, for example to read the line. Txt and that if a usuer types a lienea him a warning and if you type another line badword.txt him one last warning before the bankick.
Thank you in advance and happy new year
P.D: Written from the google translator.

Sign in to comment

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.