Advertisement
debiangr

Untitled

Apr 12th, 2023
693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.24 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 %nicks = $1-
  7.   var %total = $numtok(%nicks,32)
  8.   var %index = 1
  9.   while (%index <= %total) {
  10.     var %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]*,%p /^(?! $+ \Q $+ $replacecs($1,\E,\E\\E\Q) $+ \E$) $+ %s $+ $basenicktoregex($1,%s) $+ $ $+ /iu,%r $regex($2,%p) | noop comparing $2 -- %p -- %r -- $regerrstr | if (%r) { return 1 } }
  21. alias basenicktoregex { var %name $2 | return $regsubex($replace($1,o,[0o],e,[e3],i,[i1|],a,[a4]),/(\[[^\]]+\]|.)/g,$iif(\1 !isalnum && $len(\1) == 1,\) $+ \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