diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-22 03:44:51 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-22 03:44:51 +0000 |
commit | 3c67a234e69ba696fbe9467d984c8bdf3956cf01 (patch) | |
tree | 0bac0ae2018642fb49f9491be18e1829f267f4f1 /util/pubsub.lua | |
parent | a20e58497b7d2704a23f5c90dabb0918c1fb27c3 (diff) | |
download | prosody-3c67a234e69ba696fbe9467d984c8bdf3956cf01.tar.gz prosody-3c67a234e69ba696fbe9467d984c8bdf3956cf01.zip |
util.pubsub: Fix traceback when using autocreate-on-subscribe
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r-- | util/pubsub.lua | 1 |
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; |