aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/rostermanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
index 285cf4f6..506cf205 100644
--- a/core/rostermanager.lua
+++ b/core/rostermanager.lua
@@ -191,9 +191,9 @@ function process_inbound_unsubscribe(username, host, jid)
end
function is_contact_subscribed(username, host, jid)
- local roster = load_roster(username, host);
+ local roster, err = load_roster(username, host);
local item = roster[jid];
- return item and (item.subscription == "from" or item.subscription == "both");
+ return item and (item.subscription == "from" or item.subscription == "both"), err;
end
function is_contact_pending_in(username, host, jid)