Advertisement
westor

/nicks_info command for duckscarf

Jan 16th, 2023
1,753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.58 KB | None | 0 0
  1. alias nicks_info {
  2.   if ($status !== connected) { echo 4 -a Error: Not connected to a server! | return }
  3.   if (!$1) { echo 4 -a Error: Insert a channel! | return }
  4.   if ($me !ison $1) { echo 4 -a Error: You are not on that channel! | return }
  5.  
  6.   var %t = $nick($1,0)
  7.  
  8.   if (!%t) { echo -a Not any user on that channel! | return }
  9.  
  10.   echo -ea Start of $1 nick list..
  11.  
  12.   var %i = 1
  13.   while (%i <= %t) {
  14.     var %n = $nick($1,%i)
  15.     var %h = $ialchan(%n,$1).host
  16.  
  17.     echo -a $ord(%i) Nick: %n - Host: $iif(%h,$v1,N/A)
  18.  
  19.     inc %i
  20.   }
  21.  
  22.   echo -ea End of $1 nicks list.
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement