Diff

util/pubsub.lua @ 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
parent 3934:4bd994df7296
child 3937:843ee23cc91a
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;