From 3adede854422194f5761a40fc6663688ae0d0416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Sat, 5 Mar 2011 13:51:47 +0100 Subject: Fixed some Sluift bugs. diff --git a/Sluift/SConscript b/Sluift/SConscript index 6f38693..19dc1e7 100644 --- a/Sluift/SConscript +++ b/Sluift/SConscript @@ -28,7 +28,7 @@ if env["SCONS_STAGE"] == "build" : f = open(source[0].abspath, "r") contents = f.read() f.close() - if env["PLATFORM"] == "windows" : + if env["PLATFORM"] == "win32" : key = "Z" else : key = "D" diff --git a/Sluift/sluift.cpp b/Sluift/sluift.cpp index ca7d9ff..c9189e7 100644 --- a/Sluift/sluift.cpp +++ b/Sluift/sluift.cpp @@ -395,14 +395,14 @@ static int sluift_client_set_options(lua_State* L) { static void pushEvent(lua_State* L, Stanza::ref event) { if (Message::ref message = boost::dynamic_pointer_cast<Message>(event)) { Lua::Table result = boost::assign::map_list_of - ("type", boost::make_shared<Lua::Value>("message")) + ("type", boost::make_shared<Lua::Value>(std::string("message"))) ("from", boost::make_shared<Lua::Value>(message->getFrom().toString())) ("body", boost::make_shared<Lua::Value>(message->getBody())); Lua::pushValue(L, result); } else if (Presence::ref presence = boost::dynamic_pointer_cast<Presence>(event)) { Lua::Table result = boost::assign::map_list_of - ("type", boost::make_shared<Lua::Value>("presence")) + ("type", boost::make_shared<Lua::Value>(std::string("presence"))) ("from", boost::make_shared<Lua::Value>(presence->getFrom().toString())) ("status", boost::make_shared<Lua::Value>(presence->getStatus())); Lua::pushValue(L, result); -- cgit v0.10.2-6-g49f6