|
Joined: Jul 2004
Posts: 150
Vogon poet
|
OP
Vogon poet
Joined: Jul 2004
Posts: 150 |
Hi,
I get voices with $vnick and halfs with $hnick.
Is there support for owners and admins?
Thanks in advance!
|
|
|
|
Joined: Nov 2004
Posts: 822
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 822 |
Not that I'm aware of, no.
|
|
|
|
Joined: Jul 2004
Posts: 150
Vogon poet
|
OP
Vogon poet
Joined: Jul 2004
Posts: 150 |
Thanks for the quick reply.
So there is any other way to get the number of admins and owners in chan?
|
|
|
|
Joined: Nov 2004
Posts: 822
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 822 |
The only way I could think of is scripting something to count the number of people in a /NAMES reply with the corresponding status for admin/owner.
But apart from that, no.
|
|
|
|
Joined: Jul 2004
Posts: 150
Vogon poet
|
OP
Vogon poet
Joined: Jul 2004
Posts: 150 |
|
|
|
|
Joined: Jul 2006
Posts: 4,019
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,019 |
Use $nick(#channel,0,q) for owner and $nick(#channel,0,a) for admin
Edit : as for something like $vnick and $hnick, the only way to know that a +q or +a has been done is to use the on rawmode event and parse $1-.$mode should help you too
Last edited by Wims; 06/08/08 02:46 AM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Nov 2004
Posts: 822
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 822 |
q is undocumented. ;o
And a will return everyone. :P
Though o seems to do the trick. (Assuming admin is &?)
|
|
|
|
Joined: Jul 2006
Posts: 4,019
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,019 |
In fact $nick(#channel,0,a) does not work since "a" is used as "all nick", and i've tried with 2 network for the q part, (unrealirc in both) and i haven't be able to get it working.I'm sure i've already used this, but i think it only work if the owner mode is avalaible in $nick(#channel,nick).pnick
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jan 2004
Posts: 2,081
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,081 |
With $nick(#channel,0,SYMBOL), since 'a' means 'all', you can take advantage of the fact that you can use the mode as well as their status-symbol. If the owner gets the "~" next to their nick, you can use $nick(#channel,0,~) instead of using 'q'. If admins are given a "&", use $nick(#channel,0,&) so far i've not found mirc thinking that i'm trying to use a binary variable.
$nick(#channel,0,v) and $nick(#channel,0,+) are also equivalents.
|
|
|
|
Joined: Aug 2004
Posts: 7,168
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,168 |
Taking advantage of the optional 4th parameter (or as I like to think of it, the not parameter) would allow the user/OP to use something like $nick(#channel,0,a,~hvr)
|
|
|
|
Joined: Jan 2004
Posts: 2,081
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,081 |
Taking advantage of the optional 4th parameter (or as I like to think of it, the not parameter) would allow the user/OP to use something like $nick(#channel,0,a,~hvr)
except if someone has op *and* voice/halfop for some unknown reason
|
|
|
|
Joined: Aug 2004
Posts: 7,168
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,168 |
Possible reasons: 1) The person/bot that set the modes doesn't know better 2) The Voice option is required to play a game in a specific channel (I have about half-a-dozen of these, where the code checks to see if the person is voiced or not)
|
|
|
|
|