this is small but relevant part of my anti spam script
basically bad words are written in txt file and it reads from them

but problem lies with wildcard match
for example, it only reacts on exact given word
if banned word is "www" or "http", it will react only on them
but if user types www.whatever or http://whatever

it doesn't react
how to fix this ?

Code:
on @*:text:*:#:{
      if ($read($mircdirsystem\spam_triggers.txt, w,$+(*,$1,*)) iswm $1) {
         if (%spam.kickban == on) { .ban -k $chan $nick %spam.ban.type spam in $chan is not allowed ! }
      }
}

Last edited by vinifera; 14/02/12 05:38 PM.