; $status(Nick,[Channel])[.a]
; Nick - Nickname of user on selected channel
; Channel - Channel to get status of user from (leave blank for $chan)
; Extras:
; a - all statuses that user has
; (leaving blank will return the highest status that user has)
;
Returns the symbol of the user, makes it easier to use than isop isvoice .. etc. also allows you to use user statuses such as & and ~ whereas mirc does not support it without a long non-memorable string whereas this is easier :)
alias status {
; $status(Nick,[Channel])[.a]
; Nick - Nickname of user on selected channel
; Channel - Channel to get status of user from (leave blank for $chan)
; Extras:
; a - all statuses that user has
; (leaving blank will return the highest status that user has)
;
if (!$1) { return 2* $!status: insufficient paramaters [$status(Nick,[Channel])[.a]] | echo -a 2- }
else {
var %x = $nick($iif($2,$v1,$chan),$1).pnick
if (!%x) { return 2* $!status: error, no such nickname $qt($1) on channel $iif($2,$v1,$chan) }
else { return $iif($prop == a,$remove(%x,$1),$mid($remove(%x,$1),1,1)) }
}
}