|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
OP
Hoopy frood
Joined: May 2003
Posts: 2,265 |
maybe make this only return the highest mode prefix? $nick($chan,$me).pnick: @+tidy_trax: np could possibly return: @tidy_trax: np so like if a server that supports: .~!@+ if someone is all 5 of those prefixes, maybe return the highest one? .somenick: instead of: .~!@+somenick: i realise it's easily scripted, but note this is feature suggestion
new username: tidy_trax
|
|
|
|
Joined: May 2003
Posts: 161
Vogon poet
|
Vogon poet
Joined: May 2003
Posts: 161 |
$left($nick($chan,$nick).pnick,1)
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
OP
Hoopy frood
Joined: May 2003
Posts: 2,265 |
$iif($istok(. ! ~ @ % +,$left($nick($chan,$nick).pnick,1),32),$left($nick($chan,$nick).pnick,1) $+ $nick,$nick)
i said i realised it was easy to code :tongue: but so was $gettok and $remove:
alias gettok { var %x $2 tokenize $3 $1 return $ [ $+ [ %x ] ] } alias remove { var %text $1,%del $2,%x .echo -q $regsub(%text,/[ $+ [ %del ] ]/g,$null,%x) return %x }
and many other inbuilt identifiers
new username: tidy_trax
|
|
|
|
Joined: Apr 2003
Posts: 426
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 426 |
I actually like the fact it returns all the modes applicable to someone. Perhaps an inbuilt method of telling it to return the highest mode, or even lowest mode.
-------- mIRC - fun for all the family (except grandma and grandpa)
|
|
|
|
Joined: Jan 2003
Posts: 1,063
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 1,063 |
or N'th mode, and total number of modes...
and I would like an identyfier to return only the modes itself... now I have to do a $remove($nick(#,nick).pnick,$nick)
If it ain't broken, don't fix it!
|
|
|
|
Joined: Sep 2003
Posts: 70
Babel fish
|
Babel fish
Joined: Sep 2003
Posts: 70 |
It doesn't even show all the relevant modes. If someone has only op, for example, it will show both @ and +. There's no extra information.
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Where did you get that from?
[20:59:11] * Collective sets mode: +o bob $nick(#,bob).pnick = @bob
|
|
|
|
Joined: Apr 2003
Posts: 426
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 426 |
What I was referring to, was that it returns all the applicable channel usermodes (op, voice, etc) that have been applied to a remote client. Eg, @%+NICK
-------- mIRC - fun for all the family (except grandma and grandpa)
|
|
|
|
Joined: Jan 2003
Posts: 1,063
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 1,063 |
that's $prefix madewokherd, not .pnick
If it ain't broken, don't fix it!
|
|
|
|
|