mIRC Home    About    Download    Register    News    Help

Print Thread
#78807 11/04/04 01:27 AM
Joined: Dec 2002
Posts: 230
G
greeny Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
I added "$me" to the ALT+B -> Colors list with color 7.
However if I do $cnick($me).color or $cnick($!me).color, the color that gets returned is 2 (2 seems to be the default on unknown nicks, as $cnick(asdflksfkjdf).color also returns 2 :P).

I want to do this because I want to be able to color nicknames in query windows (like plain mIRC also does) in my own ON TEXT event.
It already works fine in channels through $nick($chan,$nick).color. I haven't found out how to do it in queries yet though.

A loop through $nick(0) is out of question because it is too slow...

Using mIRC 6.14, btw.

Any help is appreciated, thanks.

#78808 11/04/04 02:03 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
$cnick($me).color seems to work fine for me. Are you sure it's not just some other nick-colouring rule taking precedence? Make sure $me is the top rule on your cnick list.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#78809 11/04/04 02:06 AM
Joined: Dec 2002
Posts: 230
G
greeny Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
True.... I just found out the problem was that the "Any mode" checkbox was ticked. It seems only to work in channels if that option is enabled.
Thanks for your help.


Link Copied to Clipboard