mIRC Homepage
Posted By: alkahol1k operator for ~ - 14/10/04 07:12 AM
on unreal ircd there is

isop ===> @
isvo ===> +
ishop ====> %

what if the user is ~, which is +q on unreal ircd.
Posted By: Collective Re: operator for ~ - 14/10/04 07:49 AM
You can use $nick(#,$nick).pnick to return $nick's mode prefixes in $chan, e.g. ~@+nick if the user was +q, +o and +v.

Since +q/~ is the highest mode it should always be first if the user has it, so if ( $left($nick(#,$nick).pnick,1) == ~ ) { dostuff } should work.

You should bear in mind that there is probably a server somewhere that allows ~ in nicknames (here, perhaps). $left($nick(#,$nick).pnick,$+(-,$len($nick))) would return just the modes, without the nickname.
Posted By: Sigh Re: operator for ~ - 14/10/04 08:26 AM
if ($nick(#,$nick,~)) works too
© mIRC Discussion Forums