Comparison

plugins/pubsub.lua @ 272:e1833e9bd25b

plugins.pubsub: Implement unsubscribe.
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jan 2012 22:48:11 +0100
parent 265:2a2326a8f9e8
child 283:39ce7535887c
comparison
equal deleted inserted replaced
271:c9d8628a61cc 272:e1833e9bd25b
200 200
201 function pubsub_node:affiliation(callback) 201 function pubsub_node:affiliation(callback)
202 error("Not implemented yet."); 202 error("Not implemented yet.");
203 end 203 end
204 204
205 function pubsub_node:unsubscribe(callback) 205 function pubsub_node:unsubscribe(jid, callback)
206 error("Not implemented yet."); 206 self.stream:send_iq(pubsub_iq("set", self.service, nil, "unsubscribe", self.node, jid)
207 , callback);
207 end 208 end
208 209
209 function pubsub_node:configure_subscription(options, callback) 210 function pubsub_node:configure_subscription(options, callback)
210 error("Not implemented yet."); 211 error("Not implemented yet.");
211 end 212 end