Advertisement
westor

Badword finder

Nov 16th, 2014
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.35 KB | None | 0 0
  1. ON !*:TEXT:*:#: {
  2.   if ($nick isop $chan) { return }
  3.   var %f = dd.txt
  4.   if (!$isfile(%f)) { return }
  5.   if (!$lines(%f)) { return }
  6.   tokenize 32 $strip($1-)
  7.   var %t = $numtok($1-,32)
  8.   var %i = 1
  9.   while (%i <= %t) {
  10.     var %w = $gettok($1-,%i,32)
  11.     var %r = $read(%f,nw,* $+ %w $+ *)
  12.     if (%w == %r) { echo BADWORD -> %w }
  13.     inc %i
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement