diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-05-22 12:36:09 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-05-22 12:36:29 (GMT) |
commit | 2d87e3b4f19e64c255cf21732c11a65c85b96883 (patch) | |
tree | 6ecbbd3bd9c1ffacd54882fbf18a0ace3dcf64ac | |
parent | db405710b65fdbee806726aeb7bf6fd7ac9f653b (diff) | |
download | swift-contrib-2d87e3b4f19e64c255cf21732c11a65c85b96883.zip swift-contrib-2d87e3b4f19e64c255cf21732c11a65c85b96883.tar.bz2 |
Allow Sluift to not use acks from XEP-0198
-rw-r--r-- | Sluift/sluift.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Sluift/sluift.cpp b/Sluift/sluift.cpp index 4f762fa..5bcc059 100644 --- a/Sluift/sluift.cpp +++ b/Sluift/sluift.cpp @@ -466,6 +466,10 @@ static int sluift_client_send(lua_State *L) { static int sluift_client_set_options(lua_State* L) { SluiftClient* client = getClient(L); luaL_checktype(L, 2, LUA_TTABLE); + lua_getfield(L, 2, "ack"); + if (!lua_isnil(L, -1)) { + client->getOptions().useAcks = lua_toboolean(L, -1); + } lua_getfield(L, 2, "compress"); if (!lua_isnil(L, -1)) { client->getOptions().useStreamCompression = lua_toboolean(L, -1); |