core/rostermanager.lua
changeset 7067 b98006bfd97a
parent 6790 ad64e2eacd0e
child 7157 b3b92204802f
--- a/core/rostermanager.lua	Fri Jan 08 16:20:02 2016 +0100
+++ b/core/rostermanager.lua	Sat Jan 09 15:18:46 2016 +0100
@@ -300,17 +300,17 @@
 	if pending then
 		roster[false].pending[jid] = nil;
 	end
-	local subscribed;
+	local is_subscribed;
 	if item then
 		if item.subscription == "from" then
 			item.subscription = "none";
-			subscribed = true;
+			is_subscribed = true;
 		elseif item.subscription == "both" then
 			item.subscription = "to";
-			subscribed = true;
+			is_subscribed = true;
 		end
 	end
-	local success = (pending or subscribed) and save_roster(username, host, roster);
+	local success = (pending or is_subscribed) and save_roster(username, host, roster);
 	return success, pending, subscribed;
 end