mIRC Home    About    Download    Register    News    Help

Print Thread
$nick($chan,$nick).mode #15227
14/03/03 12:01 AM
14/03/03 12:01 AM
Joined: Dec 2002
Posts: 580
N
NaquadaServ Offline OP
Fjord artisan
NaquadaServ  Offline OP
Fjord artisan
N

Joined: Dec 2002
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
Re: $nick($chan,$nick).mode #15228
14/03/03 12:30 AM
14/03/03 12:30 AM
Joined: Dec 2002
Posts: 2,962
Norwich, UK
S
starbucks_mafia Offline
Hoopy frood
starbucks_mafia  Offline
Hoopy frood
S

Joined: Dec 2002
Posts: 2,962
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.
Re: $nick($chan,$nick).mode #15229
14/03/03 04:24 PM
14/03/03 04:24 PM
Joined: Dec 2002
Posts: 1,527
state of confusion
L
landonsandor Offline
Hoopy frood
landonsandor  Offline
Hoopy frood
L

Joined: Dec 2002
Posts: 1,527
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
Re: $nick($chan,$nick).mode #15230
15/03/03 10:28 AM
15/03/03 10:28 AM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Doqnach  Offline
Hoopy frood
D

Joined: Jan 2003
Posts: 1,063
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!
Re: $nick($chan,$nick).mode #15231
15/03/03 10:47 AM
15/03/03 10:47 AM
Joined: Dec 2002
Posts: 3,138
London, UK
C
Collective Offline
Hoopy frood
Collective  Offline
Hoopy frood
C

Joined: Dec 2002
Posts: 3,138
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?

Re: $nick($chan,$nick).mode #15232
15/03/03 03:22 PM
15/03/03 03:22 PM
Joined: Dec 2002
Posts: 1,527
state of confusion
L
landonsandor Offline
Hoopy frood
landonsandor  Offline
Hoopy frood
L

Joined: Dec 2002
Posts: 1,527
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
Re: $nick($chan,$nick).mode #15233
15/03/03 03:26 PM
15/03/03 03:26 PM
Joined: Dec 2002
Posts: 3,138
London, UK
C
Collective Offline
Hoopy frood
Collective  Offline
Hoopy frood
C

Joined: Dec 2002
Posts: 3,138
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...

Re: $nick($chan,$nick).mode #15234
16/03/03 04:34 PM
16/03/03 04:34 PM
Joined: Dec 2002
Posts: 1,527
state of confusion
L
landonsandor Offline
Hoopy frood
landonsandor  Offline
Hoopy frood
L

Joined: Dec 2002
Posts: 1,527
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
Re: $nick($chan,$nick).mode #15235
16/03/03 05:06 PM
16/03/03 05:06 PM
Joined: Dec 2002
Posts: 3,138
London, UK
C
Collective Offline
Hoopy frood
Collective  Offline
Hoopy frood
C

Joined: Dec 2002
Posts: 3,138
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.

Re: $nick($chan,$nick).mode #15236
17/03/03 04:57 PM
17/03/03 04:57 PM
Joined: Dec 2002
Posts: 1,527
state of confusion
L
landonsandor Offline
Hoopy frood
landonsandor  Offline
Hoopy frood
L

Joined: Dec 2002
Posts: 1,527
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