westor

Swears FIX for Dune2K v1.9

May 18th, 2020
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.93 KB | None | 0 0
  1. alias -l swear_words { return fuck.shit.damn.lol.hmm }
  2.  
  3. ON @*:TEXT:*:#SWGhost: {
  4.   if ($nick isop $chan) { return }
  5.   tokenize 32 $strip($1-)
  6.  
  7.   var %a = $ial($nick).host
  8.   var %t = $numtok($swear_words,46)
  9.   var %i = 1
  10.  
  11.   while (%i <= %t) {
  12.     var %w = $gettok($swear_words,%i,46)
  13.  
  14.     if (!$istok($1-,%w,32)) && (* $+ %w $+ * !iswm $1-) { goto next }
  15.  
  16.     inc -e $+(%,violation,_,%a) 1
  17.  
  18.     var %m = $evalnext($+(%,violation,_,%a))
  19.  
  20.     if (%m == 1) { ban -u300 $chan $nick 3 | describe $chan Has muted $nick (This is your $ord(%m) warning, 5 minutes ban for foul language!) | break }
  21.     if (%m == 2) { ban -u600 $chan $nick 3 | describe $chan Has muted $nick (This is your $ord(%m) warning, 10 minutes ban for foul language!) | break }
  22.     if (%m >= 3) { describe $chan Has muted $nick (This is your $ord(%m) warning, 30 minutes ban for foul language!) | ban -ku1800 $chan $nick 3 Banned! | break }
  23.  
  24.     :next
  25.     inc %i
  26.   }
  27. }
Add Comment
Please, Sign In to add comment