aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/pubsub.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index d43ed1db..bba0ed3a 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -108,6 +108,7 @@ function service:add_subscription(node, actor, jid, options)
if not ok then
return ok, err;
end
+ node_obj = self.nodes[node];
end
end
node_obj.subscribers[jid] = options or true;