From 2d87e3b4f19e64c255cf21732c11a65c85b96883 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Tue, 22 May 2012 13:36:09 +0100
Subject: Allow Sluift to not use acks from XEP-0198


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);
-- 
cgit v0.10.2-6-g49f6