mIRC Homepage
Posted By: pheonix $nick($chan,$nick).pnick - 02/11/03 08:29 PM
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 wink
Posted By: Ashkrynt Re: $nick($chan,$nick).pnick - 02/11/03 09:08 PM
$left($nick($chan,$nick).pnick,1)
Posted By: pheonix Re: $nick($chan,$nick).pnick - 02/11/03 09:11 PM
$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
Posted By: neophyte Re: $nick($chan,$nick).pnick - 03/11/03 01:02 AM
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.
Posted By: Doqnach Re: $nick($chan,$nick).pnick - 03/11/03 06:34 PM
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)
Posted By: madewokherd Re: $nick($chan,$nick).pnick - 03/11/03 08:01 PM
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.
Posted By: Collective Re: $nick($chan,$nick).pnick - 03/11/03 09:00 PM
Where did you get that from?

[20:59:11] * Collective sets mode: +o bob
$nick(#,bob).pnick = @bob
Posted By: neophyte Re: $nick($chan,$nick).pnick - 04/11/03 12:06 AM
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
Posted By: Doqnach Re: $nick($chan,$nick).pnick - 06/11/03 02:44 PM
that's $prefix madewokherd, not .pnick
© mIRC Discussion Forums