From 3c67a234e69ba696fbe9467d984c8bdf3956cf01 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 22 Dec 2010 03:44:51 +0000 Subject: util.pubsub: Fix traceback when using autocreate-on-subscribe --- util/pubsub.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util/pubsub.lua') 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; -- cgit v1.2.3