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
$left($nick($chan,$nick).pnick,1)
$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
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.
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)
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.
Where did you get that from?
[20:59:11] * Collective sets mode: +o bob
$nick(#,bob).pnick = @bob
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
that's $prefix madewokherd, not .pnick