mIRC Home    About    Download    Register    News    Help

Print Thread
#58869 02/11/03 08:29 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
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 wink


new username: tidy_trax
#58870 02/11/03 09:08 PM
Joined: May 2003
Posts: 161
A
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
$left($nick($chan,$nick).pnick,1)

#58871 02/11/03 09:11 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
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
#58872 03/11/03 01:02 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
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)
#58873 03/11/03 06:34 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
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!
#58874 03/11/03 08:01 PM
Joined: Sep 2003
Posts: 70
M
Babel fish
Offline
Babel fish
M
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.

#58875 03/11/03 09:00 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Where did you get that from?

[20:59:11] * Collective sets mode: +o bob
$nick(#,bob).pnick = @bob

#58876 04/11/03 12:06 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
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)
#58877 06/11/03 02:44 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
that's $prefix madewokherd, not .pnick


If it ain't broken, don't fix it!

Link Copied to Clipboard