Returns the nicks in the channel with their modes in character format. /pnick (#channel)
/*
/pnick by FLCL
This snippet echos the nicks in a channel (manually specified) with their proper modes in pnick format. Syntax: /pnick (#channel)
Updates:
Fixed a bug where it repeated the first letter of a nick with no status.
Added a bit more error checking.
Shoutouts:
Scakk - Recognized first bug, provided error checking.
xDaeMoN - provided support on shortening the code.
This snippet is NOT to be redistributed/edited.
*/
alias pnick {
if ($1 && $regex($1,/^(#)/i) && $me ison $1) {
var %x = 1
while ($nick($1, %x)) {
var %w = $v1, %n = $addtok(%n,$+($iif($left($remove($nick(#,%w).pnick,%w),1),$v1),%w),32)
inc %x
}
echo $colour(info) -a %n
}
elseif (!$1) { echo $colour(info) -a Invalid syntax. }
elseif (!$regex($1,/^(#)/i)) { echo $colour(info) -a Invalid format in channel name. Must include the 35th character (#). }
}
I, because I am pretty lazy, use this to check users in my channel from the active browser. I use this in an on join event so it will tell me the current list of users in the channel It doesn\'t have to serve any particular use. I really don\'t understand the second half of your comment, but yeah. Whatever it serves the user for I guess.