mIRC Home    About    Download    Register    News    Help

Print Thread
Mode Prefixes #96579 03/09/04 11:55 AM
Joined: Mar 2003
Posts: 160
Marantz Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Mar 2003
Posts: 160
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.

Re: Mode Prefixes #96580 03/09/04 12:17 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You can use an actual prefix for $nick()

admins( $+ $xxnick($nick($1,0,!)) $+ )


New username: hixxy
Re: Mode Prefixes #96581 03/09/04 01:46 PM
Joined: Mar 2003
Posts: 160
Marantz Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Mar 2003
Posts: 160
haha thanks for that nice simple reply, i didn't actually know that, oh well, learn something new everyday laugh thanks.