aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index bba0ed3a..f7c6597f 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -154,9 +154,10 @@ function service:get_subscription(node, actor, jid)
end
--
local node_obj = self.nodes[node];
- if node_obj then
- return true, node_obj.subscribers[jid];
+ if not node_obj then
+ return false, "item-not-found";
end
+ return true, node_obj.subscribers[jid];
end
function service:create(node, actor)