mIRC Home    About    Download    Register    News    Help

Topic Options
#722 - 09/12/02 08:41 PM other usermodes and the means to detect them...
Vandalite Offline
Pikka bird

Registered: 09/12/02
Posts: 9
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?

Top
#723 - 09/12/02 10:52 PM Re: other usermodes and the means to detect them...
KennyJ Offline
Ameglian cow

Registered: 09/12/02
Posts: 25
Loc: Vietnam
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.
_________________________
KennyJ@VietSweet.com

Top
#724 - 09/12/02 11:40 PM Re: other usermodes and the means to detect them...
zack Offline
Fjord artisan

Registered: 09/12/02
Posts: 266
Loc: Australia
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.
_________________________
You won't like it when I get angry.

Top
#725 - 09/12/02 11:52 PM Re: other usermodes and the means to detect them...
Starfox Offline
Pikka bird

Registered: 09/12/02
Posts: 18
Loc: New York, NY
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.

Top
#726 - 09/12/02 11:57 PM Re: other usermodes and the means to detect them...
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
You can use $nick(#,nickname).pnick and see if if ! is part of the nick.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#727 - 10/12/02 12:04 AM Re: other usermodes and the means to detect them...
zack Offline
Fjord artisan

Registered: 09/12/02
Posts: 266
Loc: Australia
True, but what is easier

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

:-)
_________________________
You won't like it when I get angry.

Top
#728 - 10/12/02 12:05 AM Re: other usermodes and the means to detect them...
Frog Offline
Vogon poet

Registered: 09/12/02
Posts: 111
Loc: Hell
Indeed. ConferenceRoom supports the userop - prefix, which $nick(#,nick).pnick picks up.
_________________________
Experience The Void.. Are You Ready?

Top
#729 - 10/12/02 12:07 AM Re: other usermodes and the means to detect them...
Frog Offline
Vogon poet

Registered: 09/12/02
Posts: 111
Loc: Hell
Bah, late post. Anyway, $left($nick(#,nick).pnick,1) may not always return !.. it could just as easily return @, which I believe comes first.
_________________________
Experience The Void.. Are You Ready?

Top
#730 - 10/12/02 12:14 AM Re: other usermodes and the means to detect them...
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
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.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#731 - 10/12/02 12:24 AM Re: other usermodes and the means to detect them...
zack Offline
Fjord artisan

Registered: 09/12/02
Posts: 266
Loc: Australia
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? :-)
_________________________
You won't like it when I get angry.

Top