<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/Modules/bIRC/ircStrip?action=history&amp;feed=atom</id>
	<title>Modules/bIRC/ircStrip - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/Modules/bIRC/ircStrip?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircStrip&amp;action=history"/>
	<updated>2026-04-22T13:08:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircStrip&amp;diff=20920&amp;oldid=prev</id>
		<title>Awwu: Created page with '{{ml_birc}} __NOTOC__ This function can be used to strip out wanted IRC specific text features (bolding, colouring...).  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string ircStrip ( string text, …'</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircStrip&amp;diff=20920&amp;oldid=prev"/>
		<updated>2009-07-30T09:05:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{ml_birc}} __NOTOC__ This function can be used to strip out wanted IRC specific text features (bolding, colouring...).  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string ircStrip ( string text, …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ml_birc}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function can be used to strip out wanted IRC specific text features (bolding, colouring...).&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string ircStrip ( string text, [ string options = &amp;quot;burc&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''text:''' The wanted [[string]] which is going to be stripped out it's text features.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''options:''' A string representing the strip options. It is formed from single letters, each having it's own role in the final result.&lt;br /&gt;
**'''b:''' Strip out all '''bold''' text.&lt;br /&gt;
**'''u:''' Strip out all &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text.&lt;br /&gt;
**'''r:''' Strip out all &amp;lt;span style=&amp;quot;color:white; background:black;&amp;quot;&amp;gt;reversed&amp;lt;/span&amp;gt; text.&lt;br /&gt;
**'''c:''' Strip out all &amp;lt;span style=&amp;quot;color:blue; background:orange;&amp;quot;&amp;gt;coloured&amp;lt;/span&amp;gt; text.&lt;br /&gt;
:By default all text features are removed.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the stripped out version of the string if passed arguments were valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates an ircbot called ''DummyBot'' makes it connect to a server and join a channel. Once joining the channel, bot will be echoing all IRC channel text to server log, stripping off all IRC specific text features.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function resourceStart ( )&lt;br /&gt;
    theBot = ircCreateBot ( &amp;quot;DummyBot&amp;quot; )&lt;br /&gt;
    ircConnect ( theBot, &amp;quot;irc.gtanet.com&amp;quot;, 6667 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getResourceRootElement ( getThisResource() ), resourceStart )&lt;br /&gt;
&lt;br /&gt;
function event_ircOnConnect ( theBot )&lt;br /&gt;
    setTimer ( ircJoinChannel, 2000, 1, theBot, &amp;quot;#testchannel&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function event_ircOnText ( theBot, channel, sender, message )&lt;br /&gt;
    outputServerLog ( &amp;quot;[IRC-ECHO] On &amp;quot; .. channel .. &amp;quot;; &amp;quot; .. sender .. &amp;quot;: &amp;quot; .. ircStrip ( message ) )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{ml_birc functions}}&lt;/div&gt;</summary>
		<author><name>Awwu</name></author>
	</entry>
</feed>