Software /
code /
prosody
Changeset
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 |
parents | 7062:90e8bbfbaabd |
children | 7065:4fc3c008976f |
files | core/rostermanager.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
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