mIRC Home    About    Download    Register    News    Help

Print Thread
#208317 18/01/09 05:09 PM
Joined: Jan 2009
Posts: 5
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jan 2009
Posts: 5
It would be nice to have an on ADMIN and on OWNER event, because detecting who actually got +q/a can be difficult with an on RAWMODE, especially if several modes are set that require parameters (i.e. +la 20 Mary).


The Hylian/Human Hybrid!
Joined: Feb 2007
Posts: 234
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
i dont think mode +qa are part of the standard IRC protocol but i could be mistaken. if im not then its a 50/50 shot if it gets added.

On a second note, yes i agree that would be great to add to mirc:)

Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
+q and +a have been around for a long time.
If it's not seen to be standard IRC protocols then why should they be added?
But anyway, i'm sure this is easily scriptable.

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
As others have said, those modes are non-standard. What hasn't been mentioned is that not all IRCds that support "owners" and "admins" agree on what they are capable of and what modes define them, making it difficult for mIRC to add those events and have them work as expected on each network. In fact mIRC does support an on owner event already (undocumented), but I'm pretty sure it doesn't work with a lot of servers which have an owner status because of those varying definitions.

If you're happy to have it scripted but just can't get the rawmode handling sorted, there's ready-made code to handle it already available.

Personally I'd rather see a built-in identifier for rawmode to make it easier to connect each mode with its argument, rather than having additional built-in events that might not work as expected on all servers. That way people could write a script that works for the servers they use with very little effort.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Sep 2008
Posts: 17
K
Pikka bird
Offline
Pikka bird
K
Joined: Sep 2008
Posts: 17
He makes a valid point mIRC does support on *:owner:#:{ This actually can be pretty useful, and given proper parsing before the data is sent to localhost it can be triggered on any irc network that supports mode +q. on *:admin:#:{ however is a good suggestion. I agree that we should definitely have more events. Also that if there is a said event that it be documented in the help file.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
There are a lot of events, commands and identifiers that are not in the current help file, for various reasons.
I have (or had before my system crashed) a help file that contained a lot of the items that are missing from the official help file, but even it is out of date, as, if I recall correctly, it was done up for mIRC 6, and the person that made it didn't update for later versions.

I will see if I can find the file that I am talking about, either on one of my systems, or the original online, and subject to which (if either) I can find, post a link for others to be able to obtain it.

Joined: Dec 2002
Posts: 155
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
The on OWNER event only works on now-extinct IRCX servers, IIRC. Or maybe that was the "isowner" comparison...

From versions.txt:

Quote:
23/09/99 - mIRC v5.61
2.Improved support for IRCX servers:

Added property $nick().owner, isowner if comparison, and "q"
property to $nick(#,N,aohvrq,aohvrq) where "q" is for owners.

Added on OWNER/DEOWNER events, work the same as on OP/DEOP,
and $mode().owner/deowner properties.

Joined: Dec 2008
Posts: 7
I
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
I
Joined: Dec 2008
Posts: 7
There is an on admin and on owner event. the problem is that mIRC finds the modes by recognizing changes in the users "prefix" which is in default servers @%+ meaning that mIRC only supports those two events on servers having the prefixes ~ (owner) and & (admin/superop). I know that at least newer versions of UnrealIRCD supports this.

Joined: Aug 2006
Posts: 60
S
Babel fish
Offline
Babel fish
S
Joined: Aug 2006
Posts: 60
PREFIX=(qaohv)~&@%+ in raw 005 can be used to determine what the prefixes on a server are. If q is in there, assume q is owner. If a is in there, assume a is admin.

If q/a is before the first comma in CHANMODES=Ibeg,k,FJLfjl,ABCDGKMNOPQRSTcimnprstuz in raw 005 then they're owner/admin, but just not prefixed.

So, raw 005 is a more reliable way of finding out if owner and admin exist than looking at prefix changes, especially since q and a aren't always ~ and & when prefixed.


Link Copied to Clipboard