Modules/SebasIRC/ircJoin

From Multi Theft Auto: Wiki
Revision as of 13:56, 26 August 2009 by Sebassje (talk | contribs)
Jump to navigation Jump to search


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

This function joins the bot a channel (, with a password).

Syntax

bool ircJoin(string channel [, string password])

Required arguments

  • channel: The channel name.

Optional Arguments

  • password: The channel password.

Returns

True if joined, otherwise false.

Example

addEventHandler("onResourceStart", getResourceRootElement(),
  function()
    local connect = ircConnect("irc.mtasa.com", 6667, "MTABot")
    if connect then
      ircJoin("#mta.test")
    end
  end
)

See also

Connection:

Channel:

Bot: