$cnick() will account for any mode signs included with the nick given, so you can use $cnick($nick(#, nickname).pnick) to get the rank applied.

I must admit I don't know any simple way to apply the idle time to that though. The non-simple way being to loop through $cnick(n).idle [where n is a number in the range 1 - $cnick(0)] and compare it with $nick(#, nickname).idle divided by 60 ($nick().idle is in seconds, $cnick().idle is in minutes).

Last edited by starbucks_mafia; 26/08/10 10:31 PM.

Spelling mistakes, grammatical errors, and stupid comments are intentional.