Advertisement
debiangr

Untitled

Apr 10th, 2023
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.47 KB | None | 0 0
  1. alias test_nicks {
  2.   if (!$1) { echo -a Error: Enter nicks! | return }
  3.  
  4.   var %nicks = $1-
  5.   var %total = $numtok(%nicks,32)
  6.   var %index = 1
  7.   while (%index <= %total) {
  8.     var %nick = $gettok(%nicks,%index,32)
  9.  
  10.     if (!$chkbadnick(%nick)) { echo -at Nick NOT matching! -> %nick | return }
  11.  
  12.     inc %index
  13.   }
  14.  
  15.   echo -at Ok all nick(s) matching.
  16. }
  17.  
  18. alias chkbadnick { return $regex($1,/^(?!debian$)[-a-z_`|{}^\[\]\d]*d+[e3]+b+[1i]+[a]+n+[-a-z|_`^\[\]{}\d]*$/) }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement