From 3adede854422194f5761a40fc6663688ae0d0416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= 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(event)) { Lua::Table result = boost::assign::map_list_of - ("type", boost::make_shared("message")) + ("type", boost::make_shared(std::string("message"))) ("from", boost::make_shared(message->getFrom().toString())) ("body", boost::make_shared(message->getBody())); Lua::pushValue(L, result); } else if (Presence::ref presence = boost::dynamic_pointer_cast(event)) { Lua::Table result = boost::assign::map_list_of - ("type", boost::make_shared("presence")) + ("type", boost::make_shared(std::string("presence"))) ("from", boost::make_shared(presence->getFrom().toString())) ("status", boost::make_shared(presence->getStatus())); Lua::pushValue(L, result); -- cgit v0.10.2-6-g49f6