mIRC Homepage

other usermodes and the means to detect them...

Posted By: Vandalite

other usermodes and the means to detect them... - 09/12/02 08:41 PM

most networks accept the use of the op (@), the voice(+) and the regular user.

mirc has provisions for detectingthese three usermodes using $isop, $isvoice, and $isreg. Mirc ALSO has a function to detect halfops (%) by using the $ishop commad,

Here's my question: some networks utilize a special "+a" mode to make ppl an administrator of a channel (it is symbolized by a "!". Is there a way to detect this usermode with a command? (like "$isadmin") or is there a command to see a users modes in any given channel?
Posted By: KennyJ

Re: other usermodes and the means to detect them... - 09/12/02 10:52 PM

You can do a whois, and it should tell if the nickname is an admin or not. WHen you do a whois, it tell their modes.
Posted By: zack

Re: other usermodes and the means to detect them... - 09/12/02 11:40 PM

It will still be a lot easier this is option was implemented, as with the ircX 'owner' (.) and many others I am sure are out there.
Perhaps in the next version a few of these will be implemented.
Posted By: Starfox

Re: other usermodes and the means to detect them... - 09/12/02 11:52 PM

Problem with "implementing" such features is that when do you (or Khaled for that matter) decide what to implement and what not to? Obviously, it is impossible for Khaled to support every feature there is. And some networks have features that are totally different from what's specified in RFC 1459. Others may conflict with another networks feature (same mode used to signify different things, etc.)

As it stands, mIRC implements a lot of features that are network-specific. I'm sure if there is a proper demand for it, Khaled will consider it in the next version. If not, then you can always script around it for the time being.
Posted By: starbucks_mafia

Re: other usermodes and the means to detect them... - 09/12/02 11:57 PM

You can use $nick(#,nickname).pnick and see if if ! is part of the nick.
Posted By: zack

Re: other usermodes and the means to detect them... - 10/12/02 12:04 AM

True, but what is easier

if ($left($nick(#,$nick).pnick,1) == !) { blah }
or
if ($nick isadmin #) { blah }

:-)
Posted By: Frog

Re: other usermodes and the means to detect them... - 10/12/02 12:05 AM

Indeed. ConferenceRoom supports the userop - prefix, which $nick(#,nick).pnick picks up.
Posted By: Frog

Re: other usermodes and the means to detect them... - 10/12/02 12:07 AM

Bah, late post. Anyway, $left($nick(#,nick).pnick,1) may not always return !.. it could just as easily return @, which I believe comes first.
Posted By: starbucks_mafia

Re: other usermodes and the means to detect them... - 10/12/02 12:14 AM

But why should mIRC have to implement a new operator everytime some IRCd comes up with a new half-ass mode? I don't think it's too much to ask to expect someone to script an extra 20 characters or so to check this.

Frog - $nick().pnick returns every mode that mIRC knows that user has (the modes returned by /names and any that have occurred since you joined the channel) aswell as their nickname - no more or less than isadmin would be able to work with.
Posted By: zack

Re: other usermodes and the means to detect them... - 10/12/02 12:24 AM

True, it would become quite tiredsome for a IRC Client author to have to update for IRCd usermode changes. But in a version for the future, it wouldn't hurt at all to just add them, there isn't a need to add new ones as soon as they come out, but when there is a lot to add then sure, why not? :-)
© 2020 mIRC Discussion Forums