diff options
Diffstat (limited to 'Swiftob/LuaCommands.h')
-rw-r--r-- | Swiftob/LuaCommands.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiftob/LuaCommands.h b/Swiftob/LuaCommands.h index fc743ca..c5f959d 100644 --- a/Swiftob/LuaCommands.h +++ b/Swiftob/LuaCommands.h @@ -10,7 +10,5 @@ #include <vector> -#include <lua.h> -#include <lauxlib.h> -#include <lualib.h> +#include <lua.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/noncopyable.hpp> @@ -65,6 +63,7 @@ class LuaCommands { LuaCommands(Commands* commands, const std::string& path, Client* client, TimerFactory* timerFactory, MUCs* mucs); - /* Public but isn't really part of the API */ + /* Public but aren't really part of the API */ void handleLuaCommand(int callbackIndex, lua_State* L, const std::string& command, const std::string& params, Message::ref message); + void handleLuaListener(int callbackIndex, lua_State* L, Message::ref message); Commands* getCommands() {return commands_;} int get_software_version(lua_State *L); @@ -72,4 +71,5 @@ class LuaCommands { int store_setting(lua_State *L); int get_setting(lua_State *L); + int muc_kick(lua_State *L); static LuaCommands* commandsFromLua(lua_State *L); static Storage* storageFromLua(lua_State *L); |