Advertisement
westor

/check_gecos for Koragg v1.1

May 13th, 2023 (edited)
2,304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.58 KB | None | 0 0
  1. alias check_gecos {
  2.   if (!$1) { echo 4 -aet $calias $+ : Error, Enter a search string! | return }
  3.  
  4.   tokenize 32 $strip($1-)
  5.  
  6.   var %s = $iif(* !isin $1-,$+(*,$1-,*),$1-)
  7.   var %t = $ial(*,0)
  8.  
  9.   echo -atc info $calias $+ : Searching for $qt(%s) gecos...
  10.  
  11.   var %i = 1
  12.   while (%i <= %t) {
  13.     var %nick = $ial(*,%i).nick
  14.     var %gecos = $strip($ial(*,%i).gecos)
  15.  
  16.     if (%nick) && (%gecos) && (%s iswm %gecos) { var %f = 1 | echo -atc info2 $calias $+ : %nick ( $+ %gecos $+ ) }
  17.  
  18.     inc %i
  19.   }
  20.  
  21.   if (!%f) { echo 4 -aet $calias $+ : No results match your search! }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement