mIRC Homepage
Posted By: NaquadaServ $nick($chan,$nick).mode - 14/03/03 12:01 AM
There is a $chan($chan).mode, why no $nick($chan,$nick).mode smile

Example:
Code:
$nick($chan,$nick).mode - returns +aov
Posted By: starbucks_mafia Re: $nick($chan,$nick).mode - 14/03/03 12:30 AM
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
  }
}
Posted By: landonsandor Re: $nick($chan,$nick).mode - 14/03/03 04:24 PM
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)
Posted By: Doqnach Re: $nick($chan,$nick).mode - 15/03/03 10:28 AM
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 :-[
Posted By: Collective Re: $nick($chan,$nick).mode - 15/03/03 10:47 AM
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?
Posted By: landonsandor Re: $nick($chan,$nick).mode - 15/03/03 03:22 PM
As far as I know, $usermode is for your nickname modes (such as invisible, see server notices etc)
Posted By: Collective Re: $nick($chan,$nick).mode - 15/03/03 03:26 PM
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...
Posted By: landonsandor Re: $nick($chan,$nick).mode - 16/03/03 04:34 PM
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
Posted By: Collective Re: $nick($chan,$nick).mode - 16/03/03 05:06 PM
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.
Posted By: landonsandor Re: $nick($chan,$nick).mode - 17/03/03 04:57 PM
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)
© mIRC Discussion Forums