mIRC Home    About    Download    Register    News    Help

Print Thread
#146068 30/03/06 11:00 PM
Joined: May 2005
Posts: 35
N
nutt3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2005
Posts: 35
Is there a way to remove color code from like $5, if it contains like 10L9OGO . i only want the LOGO part.

big tia

#146069 30/03/06 11:02 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
/help $strip

$strip($5)

Use $strip($5,c) if you only want the color stripped.

#146070 30/03/06 11:03 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
You can use the $strip identifier. It has a second param which denotes which kind of codes you want to ignore.

$strip(text,burcmo)
Returns text with all bold, underline, reverse, and color control codes stripped out.

The m applies the strip settings in the Messages dialog, and the o applies the "only if..." settings in the messages dialog.

Easiest way for you will be: $strip($5)


Gone.
#146071 30/03/06 11:09 PM
Joined: May 2005
Posts: 35
N
nutt3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2005
Posts: 35
thanks.. i had my eyes on that one but it did not 'click' grrrrr blush


Link Copied to Clipboard