Modules/IRCEcho/ircRaw

From Multi Theft Auto: Wiki
Revision as of 19:02, 13 January 2008 by Mountnl (talk | contribs) (New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Sends an raw message to the IRCConnection ==Syntax== <syntaxhighlight lang="lua"> function ircRaw ( IRCConnection irc, string command ) </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.

Sends an raw message to the IRCConnection

Syntax

function ircRaw ( IRCConnection irc, string command )

Required arguments

  • irc: The IRCConnection
  • command: The command that you want to send to the IRC server

Example

Example 1: This makes the IRCConnection ban Fedor!*@*


function ircBanHost( thePlayer, command, channel )
	ircRaw("MODE #mta +B Fedor!*@*")
end

addCommandHandler( "disgrace", ircBanHost )

See also