Modules/IRCEcho/ircNotice: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Notice somebody of an action ==Syntax== <syntaxhighlight lang="lua"> function ircNotice ( IRCConnection irc, string channel, string message ) </syntaxhighlight> ===Required arg...) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required arguments=== | ===Required arguments=== | ||
* '''irc:''' The IRCConnection | * '''irc:''' The IRCConnection | ||
* '''channel:''' The channel | * '''channel:''' The channel or user you want to send to | ||
* '''message:''' The message | * '''message:''' The message | ||
Line 17: | Line 17: | ||
function ReportBan( ip ) | function ReportBan( ip ) | ||
ircNotice( pIRC, "IJs", | ircNotice( pIRC, "IJs", getPlayerName( source ) .. " banned " .. sz ) | ||
end | end | ||
Latest revision as of 20:09, 2 May 2011
![]() |
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 )