<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PL/Modules/SebasIRC/ircPart?action=history&amp;feed=atom</id>
	<title>PL/Modules/SebasIRC/ircPart - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PL/Modules/SebasIRC/ircPart?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/Modules/SebasIRC/ircPart&amp;action=history"/>
	<updated>2026-04-11T02:30:48Z</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=PL/Modules/SebasIRC/ircPart&amp;diff=48364&amp;oldid=prev</id>
		<title>ThePiotrek: Created page with &quot;{{PL/ml_irc}} __NOTOC__ {{PL/ModuleFunction|SebasIRC}}  Ta funkcja sprawia, że bot wychodzi z kanału.  ==Składnia== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool ircPart ( string channel [, string re...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/Modules/SebasIRC/ircPart&amp;diff=48364&amp;oldid=prev"/>
		<updated>2016-07-21T16:37:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PL/ml_irc}} __NOTOC__ {{PL/ModuleFunction|SebasIRC}}  Ta funkcja sprawia, że bot wychodzi z kanału.  ==Składnia== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool ircPart ( string channel [, string re...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PL/ml_irc}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{PL/ModuleFunction|SebasIRC}}&lt;br /&gt;
&lt;br /&gt;
Ta funkcja sprawia, że bot wychodzi z kanału.&lt;br /&gt;
&lt;br /&gt;
==Składnia==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ircPart ( string channel [, string reason = &amp;quot;&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Wymagane argumenty===&lt;br /&gt;
* '''channel:''' Kanał z którego bot ma wyjść&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''reason:''' Powód wyjścia&lt;br /&gt;
&lt;br /&gt;
===Wartości zwrotne===&lt;br /&gt;
Zwraca ''true'' lub ''false'' w przypadku podania nieprawidłowych argumentów.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bot = nil&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(),&lt;br /&gt;
  function()&lt;br /&gt;
    if ircConnect(&amp;quot;irc.mtasa.com&amp;quot;, 6667, &amp;quot;echoBot&amp;quot;) then&lt;br /&gt;
      bot = true&lt;br /&gt;
      ircJoin(&amp;quot;#mta.echo&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;part&amp;quot;,&lt;br /&gt;
  function(thePlayer, command, channel)&lt;br /&gt;
    if channel == nil then return end&lt;br /&gt;
    &lt;br /&gt;
    if bot and ircIsConnected() then&lt;br /&gt;
      ircPart(tostring(channel))&lt;br /&gt;
      outputChatBox(&amp;quot;-IRC- Opuszczono kanał: &amp;quot;..tostring(channel)..&amp;quot;!&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[en:Modules/SebasIRC/ircPart]]&lt;br /&gt;
&lt;br /&gt;
==Zobacz także==&lt;br /&gt;
{{PL/Modules/SebasIRC/Functions}}&lt;/div&gt;</summary>
		<author><name>ThePiotrek</name></author>
	</entry>
</feed>