Maroonbells (talk | contribs) (Add content for empty page) |
m |
||
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 21: | Line 20: | ||
== 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 33: | ||
== See also == | == See also == | ||
* {{mIRC|$stripped}} | * {{mIRC|$stripped}} | ||
+ | {{mIRC identifier list}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|strip]] |
Revision as of 14:57, 22 September 2017
$strip removes colors and/or other control-code formatting from text.
Synopsis
$strip(<text>[,burcimo])
Parameters
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
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
- 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
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.