Modules/IRCEcho/ircPart

From Multi Theft Auto: Wiki
Revision as of 18:57, 13 January 2008 by Mountnl (talk | contribs) (New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Lets the IRCConnection leave a channel ==Syntax== <syntaxhighlight lang="lua"> function ircPart ( IRCConnection irc, string channel ) </syntaxhighlight> ===Required arguments==...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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 leave a channel

Syntax

function ircPart ( IRCConnection irc, string channel )

Required arguments

  • irc: The IRCConnection you wish to disconnect
  • channel: The channel you want to leave

Example

Example 1: This command makes the bot leave a channel


function ircLeaveChannel( thePlayer, command, channel )
	ircPart( pIRC, channel )
end

addCommandHandler( "ircpart", ircLeaveChannel )

See also