Advertisement
debiangr

Untitled

Apr 10th, 2023
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.19 KB | None | 0 0
  1. alias test_nicks {
  2.   ; /test_nicks de]bian de^bian de-bian de`bian dgdgd-de[b]ian_hdhdfh de[b]ian de}bian|legen de}bian d{e}bian
  3.  
  4.   if (!$1) { echo -a Error: Enter nicks! | return }
  5.  
  6.   var -s %nicks = $1-
  7.   var %total = $numtok(%nicks,32)
  8.   var %index = 1
  9.   while (%index <= %total) {
  10.     var -s %nick = $gettok(%nicks,%index,32)
  11.  
  12.     if (!$chkbadnick2(debian,%nick)) { echo -at Nick NOT matching! -> %nick | return }
  13.  
  14.     inc %index
  15.   }
  16.  
  17.   echo -at Ok all nick(s) matching.
  18. }
  19.  
  20. alias chkbadnick2 { var %s = [-a-z_`|{}^\[\]\d]* | if ($regex($2,/^(?! $+ \Q $+ $replacecs($1,\E,\E\\E\Q) $+ \E $+) $+ %s $+ \Q $+ $replacecs($basenicktoregex($1,%s),\E,\E\\E\Q) $+ \E $+ %s $+ $/iu)) { return 1 } }
  21. alias basenicktoregex { var %name $2 | return $regsubex($replace($1,o,[0o],e,[e3],etc,[etc]),/(\[[^\]]+\]|.)/g,\1+ $+ %name) }
  22.  
  23.  
  24.  
  25. ;alias chkbadnick { return $regex($1,/^(?!debian$)[-a-z_`|{}^\[\]\d]*d+[e3]+[b]+[1i]+[a]+n+[-a-z|_`^\[\]{}\d]*$/) }
  26. ;alias checkallnick var %s [-a-z_`|{}^\[\]\d]* | noop $hfind(table,*,0,w,if ($regex($1,/^(?! $+ \Q $+ $replacecs($1,\E,\E\\E\Q) $+ \E $+) $+ %s $+ \Q $+ $replacecs($basenicktoregex($1,%s),\E,\E\\E\Q) $+ \E $+ %s $+ $/i) echo -sg bad nick alert: $1)
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement