home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
TeamSpeak
/
TeamSpeak3-Client-win32-3.0.0.exe
/
plugins
/
lua_plugin
/
testmodule
/
init.lua
< prev
Wrap
Text File
|
2011-01-24
|
1KB
|
23 lines
--
-- Testmodule initialisation, this script is called via autoload mechanism when the
-- TeamSpeak 3 client starts.
--
require("ts3init") -- Required for ts3RegisterModule
require("testmodule/events") -- Forwarded TeamSpeak 3 callbacks
require("testmodule/demo") -- Some demo functions callable from TS3 client chat input
-- Define which callbacks you want to receive in your module. Callbacks not mentioned
-- here will not be called. To avoid function name collisions, your callbacks should
-- be put into an own package.
local registeredEvents = {
onConnectStatusChangeEvent = testmodule_events.onConnectStatusChangeEvent,
onNewChannelEvent = testmodule_events.onNewChannelEvent,
onTalkStatusChangeEvent = testmodule_events.onTalkStatusChangeEvent,
onTextMessageEvent = testmodule_events.onTextMessageEvent,
onPluginCommandEvent = testmodule_events.onPluginCommandEvent
}
-- Register your callback functions with a unique module name.
ts3RegisterModule("testmodule", registeredEvents)