<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/Modules/bIRC/ircGetName?action=history&amp;feed=atom</id>
	<title>Modules/bIRC/ircGetName - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/Modules/bIRC/ircGetName?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircGetName&amp;action=history"/>
	<updated>2026-05-21T09:30:58Z</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/ircGetName&amp;diff=20922&amp;oldid=prev</id>
		<title>Awwu: Created page with '{{ml_birc}} __NOTOC__ This function is used to retrieve the name of the specified {{ml_birc|ircbot}}.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string ircGetName ( ircbot theBot ) &lt;/syntaxhighlight&gt;   ===…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/bIRC/ircGetName&amp;diff=20922&amp;oldid=prev"/>
		<updated>2009-07-30T09:23:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{ml_birc}} __NOTOC__ This function is used to retrieve the name of the specified {{ml_birc|ircbot}}.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string ircGetName ( ircbot theBot ) &amp;lt;/syntaxhighlight&amp;gt;   ===…&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 retrieve the name of the specified {{ml_birc|ircbot}}.&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 ircGetName ( ircbot theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBot:''' The ircbot which name you want to get&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] of the ircbot's name if passed arguments were valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates an ircbot called ''DummyBot'' and makes it connect to a server. Once it has connected, it prints out a message with the bot's name to server log.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function resourceStart ()&lt;br /&gt;
    dummyBot = ircCreateBot ( &amp;quot;DummyBot&amp;quot; )&lt;br /&gt;
    ircConnect ( dummyBot, &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;
    outputServerLog ( ircGetName ( theBot ) .. &amp;quot; is now connected!&amp;quot; )&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>