$premode returns the value of a users mode in a channel. (~,&,@,%,+) It can return both your mode and another user's. The format you have to use is $premode(pnick).me/nick
alias premode {
if ($isid) {
if ($1 = pnick) {
if ($prop = me) {
while ($nick($active, $me).pnick != $me) { return $+($left($ifmatch, 1),$me) }
}
if ($prop = nick) {
while ($nick($active, $nick).pnick != $nick) { return $+($left($ifmatch, 1),$nick) }
}
else { return $nick }
}
}
}