mIRC Homepage
Posted By: Marantz Mode Prefixes - 03/09/04 11:55 AM
I go on many servers that use lots of different mode prefixes
the problem i have is my script has a small stats echo to show how many nicks have what mode when i join a channel, but thats the ones mIRC picks up by default
ie;
Code:
 owners( $+ $xxnick($nick($1,0,q)) $+ ) ops( $+ $xxnick($nick($1,0,o)) $+ ) voices( $+ $xxnick($nick($1,0,v)) $+ ) nonops( $+ $xxnick($nick($1,0,r)) $+ ) total( $+ $xxnick($nick($1,0,a)) $+ ) 


but what happens if i want to add the other mode prefixes
such as & ! ~ and * i know .pnick does it, but how can that be added to that code to show it? i'm stumped confused

any help appriciated.
Posted By: tidy_trax Re: Mode Prefixes - 03/09/04 12:17 PM
You can use an actual prefix for $nick()

admins( $+ $xxnick($nick($1,0,!)) $+ )
Posted By: Marantz Re: Mode Prefixes - 03/09/04 01:46 PM
haha thanks for that nice simple reply, i didn't actually know that, oh well, learn something new everyday laugh thanks.
© mIRC Discussion Forums