<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/Modules/bIRC/ircQuit?action=history&amp;feed=atom</id>
	<title>Modules/bIRC/ircQuit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/Modules/bIRC/ircQuit?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircQuit&amp;action=history"/>
	<updated>2026-12-04T19:20:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircQuit&amp;diff=20893&amp;oldid=prev</id>
		<title>Awwu: Created page with &#039;{{ml_birc}} __NOTOC__ This function is used to disconnect an {{ml_birc|ircbot}} from a server.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool ircQuit ( ircbot theBot, [ string quitMessage ] ) &lt;…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircQuit&amp;diff=20893&amp;oldid=prev"/>
		<updated>2009-07-29T18:23:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{ml_birc}} __NOTOC__ This function is used to disconnect an {{ml_birc|ircbot}} from a server.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool ircQuit ( ircbot theBot, [ string quitMessage ] ) &amp;lt;…&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 is used to disconnect an {{ml_birc|ircbot}} from a server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ircQuit ( ircbot theBot, [ string quitMessage ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;theBot:&amp;#039;&amp;#039;&amp;#039; The ircbot which will be disconnected.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;quitMessage:&amp;#039;&amp;#039;&amp;#039; A quit message to be displayed when quitting. By default it uses the quit message set by {{ml_birc|ircSetQuitMessage}}.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if passed arguments were valid, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates an ircbot called &amp;#039;&amp;#039;DummyBot&amp;#039;&amp;#039; and makes it connect to irc.gtanet.com server on resource start. When the resource stops, the bot is also disconnected from the server and destroyed.&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 resourceStop()&lt;br /&gt;
    if theBot then&lt;br /&gt;
        ircQuit ( theBot )&lt;br /&gt;
        ircDestroyBot ( theBot )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStop&amp;quot;, getResourceRootElement ( getThisResource() ), resourceStop )&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>