Diff

core/rostermanager.lua @ 7064:b98006bfd97a

rostermanager: Rename variable to avoid name clash [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 09 Jan 2016 15:18:46 +0100
parent 6787:ad64e2eacd0e
child 7154:b3b92204802f
line wrap: on
line diff
--- 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