|
Joined: Dec 2002
Posts: 580
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 580 |
There is a $chan($chan).mode, why no $nick($chan,$nick).mode Example:
$nick($chan,$nick).mode - returns +aov
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
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). 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.
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
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
|
|
|
|
Joined: Jan 2003
Posts: 1,063
Hoopy frood
|
Hoopy frood
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!
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
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?
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
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
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
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...
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
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
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
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
|
|
|
|
|