aboutsummaryrefslogtreecommitdiffstats
path: root/core/rostermanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-09 15:18:46 +0100
committerKim Alvefur <zash@zash.se>2016-01-09 15:18:46 +0100
commit1503fd92e68b43f5144c6a3d608b46978d320529 (patch)
treedbc0fb6bb80eae526cef35590afba8781b03ac88 /core/rostermanager.lua
parentb3d9c810676d288d193e4dcc3d95456e8a050f0e (diff)
downloadprosody-1503fd92e68b43f5144c6a3d608b46978d320529.tar.gz
prosody-1503fd92e68b43f5144c6a3d608b46978d320529.zip
rostermanager: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'core/rostermanager.lua')
-rw-r--r--core/rostermanager.lua8
1 files changed, 4 insertions, 4 deletions
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