Project

General

Profile

Actions

$strip » History » Revision 5

« Previous | Revision 5/7 (diff) | Next »
Per Amundsen, 12/22/2021 06:06 PM


Added in 1.8.10

$strip(text,[buercmos])

Returns text with all control codes stripped out.

Parameters

text - The text to format.

[burcmo] - If specified, only strip these codes, b = bold, u = underline, r = reverse, c = colors, e = strikethrough, s = stop control codes, m/o = use global strip options from Options -> Messages -> Strip mIRC tags.

Example

; Strip all codes.
//echo -ag $strip($chr(3) $+ 3,3text)

; Use global option to strip codes.
//echo -ag $strip($chr(3) $+ 3,3text, m)

; Strip only bold and color codes
//echo -ag $strip($chr(2) $+ $chr(29) $+ $chr(3) $+ 3,3text,bc)

Updated by Per Amundsen almost 3 years ago · 5 revisions

Also available in: PDF HTML TXT