Modules/SebasIRC/ircConnect: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server function}} {{ModuleFunction|SebasIRC}} This function will set a connection to the IRC Server. ==Syntax== <syntaxhighlight lang="lua"> bool ircConnect(string ip, int port) </syntaxhighlight> ===...)
 
mNo edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{ml_irc}}
__NOTOC__
__NOTOC__
{{Server function}}
{{ModuleFunction|SebasIRC}}
{{ModuleFunction|SebasIRC}}


Line 7: Line 7:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool ircConnect(string ip, int port)
bool ircConnect(string ip, int port, string nickName)
</syntaxhighlight>
</syntaxhighlight>
===Required arguments===
===Required arguments===
* '''IP:''' The IP from the IRC.
* '''ip:''' The IP from the IRC.
* '''Port:''' The port from the IRC.
* '''port:''' The port from the IRC.
* '''nickName:''' The nickname for bot.


===Returns===
===Returns===
Line 23: Line 24:
==See also==
==See also==
{{Modules/SebasIRC/Functions}}
{{Modules/SebasIRC/Functions}}
[[pl:Modules/SebasIRC/ircConnect]]

Latest revision as of 16:08, 21 July 2016


Package-x-generic.png This function is provided by the external module SebasIRC. You must install this module to use this function.


This function will set a connection to the IRC Server.

Syntax

bool ircConnect(string ip, int port, string nickName)

Required arguments

  • ip: The IP from the IRC.
  • port: The port from the IRC.
  • nickName: The nickname for bot.

Returns

True if connected, otherwise false.

Example

-- Example

See also

Connection:

Channel:

Bot: