mIRC Home    About    Download    Register    News    Help

Print Thread
#203075 06/08/08 02:16 AM
Joined: Jul 2004
Posts: 150
D
Debug Offline OP
Vogon poet
OP Offline
Vogon poet
D
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!

Debug #203076 06/08/08 02:18 AM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Not that I'm aware of, no.


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #203077 06/08/08 02:28 AM
Joined: Jul 2004
Posts: 150
D
Debug Offline OP
Vogon poet
OP Offline
Vogon poet
D
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?

Debug #203080 06/08/08 02:35 AM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
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.


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #203082 06/08/08 02:39 AM
Joined: Jul 2004
Posts: 150
D
Debug Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Jul 2004
Posts: 150
Ok, Jigsy. Thanks again!

Debug #203083 06/08/08 02:40 AM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
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
Wims #203088 06/08/08 03:04 AM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
q is undocumented. ;o

And a will return everyone. :P


Though o seems to do the trick. (Assuming admin is &?)


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #203091 06/08/08 03:19 AM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
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
Wims #203094 06/08/08 04:16 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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.

maroon #203099 06/08/08 04:51 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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)

RusselB #203100 06/08/08 05:20 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Originally Posted By: RusselB
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

maroon #203102 06/08/08 05:32 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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)


Link Copied to Clipboard