mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 426
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
I've got a nickcompleter I'm working on, and had started to work on bolding and underlining parts of the nickname so it looked like this:

nickname:

(The last character plus the : are also underlined).

This is what I used:

$replace(%nick,$left(%nick,1),$+(,,$left(%nick,1),,),$right(%nick,1),$+(,,$right(%nick,1),$chr(58),,))


However, the obvious issue here is that if there is any occurance of $left(%nick,1) and $right(%nick,1), in the nickname other than the first and last characters, it will get bolded and underlined with a : appended (depending on character etc).

I'm wondering how I could fix this?

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
//var %nick = Online | echo -a $+($chr(2),$left(%nick,1),$chr(2),$mid(%nick,2,-1),$chr(2),$chr(31),$right(%nick,1),:,$chr(15))

Joined: Apr 2003
Posts: 426
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
Ah! Sweet. I'd only just started to play around with $mid too.


Link Copied to Clipboard