gooshie commented on a Page, Scripting Identifiers  -  Nov 27, 2009
alias owner { return $nick(#,$iif($1,$1,$me),~) }
alias admin { return $nick(#,$iif($1,$1,$me),&) }
alias op { return $nick(#,$iif($1,$1,$me),o) }
alias halfop { return $nick(#,$iif($1,$1,$me),h) }
alias voice { return $nick(#,$iif($1,$1,$me),v) }

The $iif $true $false not really needed if you're only
going to use it as in your example. You would only
really need the $true $false returned if you wanted
to echo out or msg or by whatever means see the words
$true or $false. If so then do as follows:

alias owner { return $iif($nick(#,$iif($1,$1,$me),~),$true,$false) }
alias admin { return $iif($nick(#,$iif($1,$1,$me),&),$true,$false) }
alias op { return $iif($nick(#,$iif($1,$1,$me),o),$true,$false) }
alias halfop { return $iif($nick(#,$iif($1,$1,$me),h),$true,$false) }
alias voice { return $iif($nick(#,$iif($1,$1,$me),v),$true,$false) }
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.