Modules/SebasIRC/onIRCRaw: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ml_irc}} | {{ml_irc}} | ||
__NOTOC__ | __NOTOC__ | ||
This event triggers when raw data is sent from the IRC server to the module. Thanks to this, scripts can know when something has happened on IRC. (i.e. chatting) | This event triggers when raw data is sent from the IRC server to the module. Thanks to this, scripts can know when something has happened on IRC. (i.e. chatting) | ||
Line 20: | Line 19: | ||
function handleRawIRCData(msg) | function handleRawIRCData(msg) | ||
if msg then | if msg then | ||
outputServerLog(msg) -- Show all | outputServerLog(msg) -- Show all incoming IRC data | ||
end | end | ||
end | end |
Revision as of 09:25, 10 October 2009
This event triggers when raw data is sent from the IRC server to the module. Thanks to this, scripts can know when something has happened on IRC. (i.e. chatting)
Parameters
string content
- content: The raw command that has been sent to the module
Source
The source of this event is the root element.
Example
local root = getRootElement() function handleRawIRCData(msg) if msg then outputServerLog(msg) -- Show all incoming IRC data end end addEventHandler("onIRCRaw", root, handleRawIRCData)
See also
There are no more events, more events are made in lua with onIRCRaw so that you can create your own syntax.