aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-22 03:44:51 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-22 03:44:51 +0000
commit3c67a234e69ba696fbe9467d984c8bdf3956cf01 (patch)
tree0bac0ae2018642fb49f9491be18e1829f267f4f1 /util
parenta20e58497b7d2704a23f5c90dabb0918c1fb27c3 (diff)
downloadprosody-3c67a234e69ba696fbe9467d984c8bdf3956cf01.tar.gz
prosody-3c67a234e69ba696fbe9467d984c8bdf3956cf01.zip
util.pubsub: Fix traceback when using autocreate-on-subscribe
Diffstat (limited to 'util')
-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;