summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift/client.cpp')
-rw-r--r--Sluift/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sluift/client.cpp b/Sluift/client.cpp
index 06df6a4..1cdd8d7 100644
--- a/Sluift/client.cpp
+++ b/Sluift/client.cpp
@@ -467,19 +467,19 @@ SLUIFT_LUA_FUNCTION_WITH_HELP(
throw Lua::Exception("Missing MAMQuery");
}
if (boost::shared_ptr<MAMQuery> mamQuery = boost::dynamic_pointer_cast<MAMQuery>(Sluift::globals.elementConvertor.convertFromLuaUntyped(L, 2, "mam_query"))) {
IQRouter *router = getClient(L)->getClient()->getIQRouter();
JID jid;
lua_getfield(L, 2, "jid");
if (!lua_isnil(L, -1)) {
jid = JID(lua_tostring(L, -1));
}
- router->sendIQ(IQ::createRequest(IQ::Get, jid, IDGenerator().generateID(), mamQuery));
+ router->sendIQ(IQ::createRequest(IQ::Set, jid, IDGenerator().generateID(), mamQuery));
}
else {
throw Lua::Exception("Illegal MAMQuery");
}
return 0;
}
static void pushEvent(lua_State* L, const SluiftClient::Event& event) {
switch (event.type) {