mIRC Home    About    Download    Register    News    Help

Topic Options
#15227 - 14/03/03 12:01 AM $nick($chan,$nick).mode
NaquadaServ Offline
Fjord artisan

Registered: 12/12/02
Posts: 580
There is a $chan($chan).mode, why no $nick($chan,$nick).mode smile

Example:
Code:
$nick($chan,$nick).mode - returns +aov
_________________________
NaquadaBomb
www.mirc-dll.com

Top
#15228 - 14/03/03 12:30 AM Re: $nick($chan,$nick).mode
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
Presumably it's not built-in because it's rarely needed, the actual prefixes are much more common requirements. It can be easily scripted of course (I realise this is a feature suggestion but I'm just pointing this out in case you didn't know).

Code:
alias nick_modes {
  if ($2 ison $1) {
    var %r = $remove($nick($1, $2).pnick, $2), %i = 1
    while ($mid($prefix, %i, 1)) {
      var %r = $replace(%r, $ifmatch, $mid($nickmode, %i, 1))
      inc %i
    }
    return %r
  }
}
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#15229 - 14/03/03 04:24 PM Re: $nick($chan,$nick).mode
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
That's what $nick(#,nickname).pnick does. Try it on yourself if you want //echo -a $nick(#,$me).pnick. To combine it with your nickname you'd use //echo -a $nick(#,nickname).pnick $+ $nick(#,nickname). I also made an alias for this /pnick //return $nick(#,$1).pnick so all you'd have to do is $pnick(nickname) on a channel and it would give you the modes. You could easily expand it to be /epnick //return $nick(#,$1).pnick $+ $nick(#,$1)
_________________________
Those who fail history are doomed to repeat it

Top
#15230 - 15/03/03 10:28 AM Re: $nick($chan,$nick).mode
Doqnach Offline
Hoopy frood

Registered: 18/01/03
Posts: 1063
I would like to see an identifyer to show your OWN active PERSONAL modes (like +oixw or something)


beside that, $nick(#,$nick).pnick returns the nick in [email].@%+nick[/email] format... so no need to add the nick itself after it...

the code I use is $left($replace($nick($chan,$nick).pnick,$nick,$null),1)

the $left is because mIRC doesn't hotlink names with more then 1 mode char before it :-[
_________________________
If it ain't broken, don't fix it!

Top
#15231 - 15/03/03 10:47 AM Re: $nick($chan,$nick).mode
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
Quote:
I would like to see an identifyer to show your OWN active PERSONAL modes (like +oixw or something)

I think $usermode does that, or have I misunderstood?

Top
#15232 - 15/03/03 03:22 PM Re: $nick($chan,$nick).mode
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
As far as I know, $usermode is for your nickname modes (such as invisible, see server notices etc)
_________________________
Those who fail history are doomed to repeat it

Top
#15233 - 15/03/03 03:26 PM Re: $nick($chan,$nick).mode
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
I know, I think that's what he meant - he said his "OWN active PERSONAL modes", and gave 4 examples, 3 of which I've only seen used on nicknames, not nicknames in channels...

Top
#15234 - 16/03/03 04:34 PM Re: $nick($chan,$nick).mode
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
Well, from the original post:

There is a $chan($chan).mode, why no $nick($chan,$nick).mode



That tells me he's looking for CHANNEL related modes and not user related modes ESPECIALLY since he's using the $nick instead of $usermode. If he was looking for his own nickname (non channel) related modes he wouldnt have used $nick($chan,$nick) in his example
_________________________
Those who fail history are doomed to repeat it

Top
#15235 - 16/03/03 05:06 PM Re: $nick($chan,$nick).mode
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
Quote:
Well, from the original post:

There is a $chan($chan).mode, why no $nick($chan,$nick).mode

I don't care about the original post, I'm talking about Doqnach's post, which says he wants an identifier to return "your OWN active PERSONAL modes", and then gives 4 examples, 3 of which I have only ever seen as usermodes.

He THEN moves on to talk about something different in reply to your post (I think, based on the fact he left 2 lines and then said "beside that"). The first part of his post was just a related suggestion (from what I can tell), and that was the part I replied to, not the orginal post, so I've no idea why you mentioned it.

Top
#15236 - 17/03/03 04:57 PM Re: $nick($chan,$nick).mode
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
Ok, I see what happened here (stating the obvious); he went on to say he wanted his own personal modes as a reply to my reply of the initial post and thus kinda confusled me a bit. We're all on the same page now (I hope)
_________________________
Those who fail history are doomed to repeat it

Top