Modules/SebasIRC/ircJoin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{ml_irc}}
__NOTOC__
__NOTOC__
{{Server function}}
{{ModuleFunction|SebasIRC}}
{{ModuleFunction|SebasIRC}}



Revision as of 13:06, 22 May 2009


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


// TODO

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)
    if connect then
      ircJoin("#mta")
    end
  end
)

See also

Connection:

Channel:

Bot: