# HG changeset patch # User Matthew Wild # Date 1292989491 0 # Node ID 61f12f8a85392e93018b7b3171dfc342b3811957 # Parent 2733b56f23b040ce4daf5b375186c1c7ab8dcb8e util.pubsub: Fix traceback when using autocreate-on-subscribe diff -r 2733b56f23b0 -r 61f12f8a8539 util/pubsub.lua --- 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;