Modules/IRCEcho/ircNotice

From Multi Theft Auto: Wiki
Revision as of 20:09, 2 May 2011 by SuN (talk | contribs)
(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.

Notice somebody of an action

Syntax

function ircNotice ( IRCConnection irc, string channel, string message )

Required arguments

  • irc: The IRCConnection
  • channel: The channel or user you want to send to
  • message: The message

Example

Example 1: This example is warning IJs of an banned user


function ReportBan( ip )
	ircNotice( pIRC, "IJs", getPlayerName( source ) .. " banned " .. sz )
end

addEventHandler( "onBan", getRootElement(), ReportBan )

See also