From 986e6171b3cea117a86fa544b1cdbb750539437f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 9 Jan 2016 15:18:46 +0100 Subject: rostermanager: Rename variable to avoid name clash [luacheck] --- core/rostermanager.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/rostermanager.lua') diff --git a/core/rostermanager.lua b/core/rostermanager.lua index f196ccf3..0b72d0a6 100644 --- a/core/rostermanager.lua +++ b/core/rostermanager.lua @@ -300,17 +300,17 @@ local function unsubscribed(username, host, jid) 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 -- cgit v1.2.3