aboutsummaryrefslogtreecommitdiffstats
path: root/core/rostermanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-10 03:57:17 +0100
committerKim Alvefur <zash@zash.se>2016-01-10 03:57:17 +0100
commit0f30c79999e4572c62f8f5bdfd29771b746db8d3 (patch)
tree64202f4daef595ff51640c1810fbb2751775faa4 /core/rostermanager.lua
parentfb972a1ea95f574ecacd7a213a04c4cab5e41f56 (diff)
parent596cd6813cca26de9864a92650b04aa90d4af3c3 (diff)
downloadprosody-0f30c79999e4572c62f8f5bdfd29771b746db8d3.tar.gz
prosody-0f30c79999e4572c62f8f5bdfd29771b746db8d3.zip
Merge 0.10->trunk
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