Maroonbells (talk | contribs) (Add content for empty page) |
(→Parameters) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$strip | + | {{mirc title|$strip identifier}}'''$strip''' removes colors and/or other control-code formatting from text. |
− | + | ||
== Synopsis == | == Synopsis == | ||
− | <pre>$strip( <text> [,burcimo] )</pre> | + | <pre>$strip(<text>[,burcimo])</pre> |
== Parameters == | == Parameters == | ||
Line 16: | Line 16: | ||
| m | The Color/Other settings from mIRC-OptionsIRC//Messages | | m | The Color/Other settings from mIRC-OptionsIRC//Messages | ||
| o | The Only-If settings from mIRC-OptionsIRC//Messages/If-more-than | | o | The Only-If settings from mIRC-OptionsIRC//Messages/If-more-than | ||
+ | | e | StrikeThrough | ||
}} | }} | ||
Line 21: | Line 22: | ||
== Example == | == Example == | ||
− | |||
; Two consecutive ^B's used within a bad word does not alter the display, but prevents a match against the badword list unless $strip is first used on the text | ; Two consecutive ^B's used within a bad word does not alter the display, but prevents a match against the badword list unless $strip is first used on the text | ||
<source lang="mIRC"> | <source lang="mIRC"> | ||
Line 35: | Line 35: | ||
== See also == | == See also == | ||
* {{mIRC|$stripped}} | * {{mIRC|$stripped}} | ||
+ | {{mIRC identifier list}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|strip]] |
Latest revision as of 20:05, 22 January 2022
$strip removes colors and/or other control-code formatting from text.
Synopsis[edit]
$strip(<text>[,burcimo])
Parameters[edit]
TextText string from which to remove colors or control codes.
Optional types to strip from text. Default is $strip(text,burci)
b Bold $chr(2)
u Underline $chr(31)
r Reverse Colors $chr(22)
c Colors $chr(3) followed by N[,N]
i Italics $chr(29)
m The Color/Other settings from mIRC-OptionsIRC//Messages
o The Only-If settings from mIRC-OptionsIRC//Messages/If-more-than
e StrikeThrough
Note from the above that the control-code entered at the keyboard is not always the same one sent. For example, you press Control-K to precede numbers in colors, which is also $chr(11), but it actually sends $chr(3) which is same as Ctrl-C. Same goes for entering Ctrl-I for Italics but the text actually contains $chr(29).
Example[edit]
- Two consecutive ^B's used within a bad word does not alter the display, but prevents a match against the badword list unless $strip is first used on the text
on *:TEXT:*:#channelname:{ var %i $CheckForBadWords($strip($1-)) ; Using Strip to find 'bad words' that could have been disguised by colors and control-codes }
Compatibility[edit]
Added: mIRC v4.7
Added on: 09 Dec 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.