Modules/IRCEcho/ircInit: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ Initializes the module for use in the script. Must be ran in the scripts you want to use with the echo ==Syntax== <syntaxhighlight lang="lua"> function ircInit() </syntaxhighlight> ==Example== '''Examp...) |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ModuleFunction|IRCEcho}} | |||
Initializes the module for use in the script. Must be ran in the scripts you want to use with the echo | Initializes the module for use in the script. Must be ran in the scripts you want to use with the echo | ||
Latest revision as of 15:21, 13 January 2008
This function is provided by the external module IRCEcho. You must install this module to use this function. | |
Initializes the module for use in the script. Must be ran in the scripts you want to use with the echo
Syntax
function ircInit()
Example
Example 1: This example initializes the module on resource startup
function onResourceStart( res ) if ( res == getThisResource () ) then ircInit() outputServerLog( "Initialized IRC for " .. getResourceName( res ) ) end end addEventHandler( "onResourceStart", getRootElement(), onResourceStart )