summaryrefslogtreecommitdiffstats
path: root/Sluift
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift')
-rw-r--r--Sluift/SConscript2
-rw-r--r--Sluift/sluift.cpp4
2 files changed, 3 insertions, 3 deletions
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);