Comparison

plugins/pubsub.lua @ 332:6ecf44918156

plugins.pubsub: Explicitly subscribe with our current full jid as default
author Kim Alvefur <zash@zash.se>
date Sun, 10 Feb 2013 18:14:31 +0100
parent 283:39ce7535887c
child 333:36e9d5a2ae79
comparison
equal deleted inserted replaced
331:d23bb21668a7 332:6ecf44918156
195 :add_child(node) 195 :add_child(node)
196 , callback); 196 , callback);
197 end 197 end
198 198
199 function pubsub_node:subscribe(jid, options, callback) 199 function pubsub_node:subscribe(jid, options, callback)
200 jid = jid or self.stream.jid;
200 if options ~= nil then 201 if options ~= nil then
201 error("Subscription configuration is not implemented yet."); 202 error("Subscription configuration is not implemented yet.");
202 end 203 end
203 self.stream:send_iq(pubsub_iq("set", self.service, nil, "subscribe", self.node, jid, id) 204 self.stream:send_iq(pubsub_iq("set", self.service, nil, "subscribe", self.node, jid, id)
204 , callback); 205 , callback);