Comparison

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
comparison
equal deleted inserted replaced
3935:2733b56f23b0 3936:61f12f8a8539
106 else 106 else
107 local ok, err = self:create(node, actor); 107 local ok, err = self:create(node, actor);
108 if not ok then 108 if not ok then
109 return ok, err; 109 return ok, err;
110 end 110 end
111 node_obj = self.nodes[node];
111 end 112 end
112 end 113 end
113 node_obj.subscribers[jid] = options or true; 114 node_obj.subscribers[jid] = options or true;
114 return true; 115 return true;
115 end 116 end