Changeset

3936:61f12f8a8539

util.pubsub: Fix traceback when using autocreate-on-subscribe
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Dec 2010 03:44:51 +0000
parents 3935:2733b56f23b0
children 3937:843ee23cc91a
files util/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/pubsub.lua	Wed Dec 22 03:04:44 2010 +0000
+++ b/util/pubsub.lua	Wed Dec 22 03:44:51 2010 +0000
@@ -108,6 +108,7 @@
 			if not ok then
 				return ok, err;
 			end
+			node_obj = self.nodes[node];
 		end
 	end
 	node_obj.subscribers[jid] = options or true;