Modules/IRCEcho/ircJoin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Lets the IRCConnection join an channel ==Syntax== <syntaxhighlight lang="lua"> function ircJoin ( IRCConnection irc, string channel ) </syntaxhighlight> ===Required arguments==...)
 
No edit summary
 
Line 8: Line 8:
</syntaxhighlight>
</syntaxhighlight>
===Required arguments===
===Required arguments===
* '''irc:''' The IRCConnection you wish to disconnect
* '''irc:''' The IRCConnection
* '''channel:''' The channel you want to join
* '''channel:''' The channel you want to join



Latest revision as of 18:57, 13 January 2008


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

Lets the IRCConnection join an channel

Syntax

function ircJoin ( IRCConnection irc, string channel )

Required arguments

  • irc: The IRCConnection
  • channel: The channel you want to join

Example

Example 1: This command makes the bot join another channel


function ircJoinChannel( thePlayer, command, channel )
	ircJoinChannel( pIRC, channel )
end

addCommandHandler( "ircjoin", ircJoinChannel )

See also