Software /
code /
verse
Diff
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 |
line wrap: on
line diff
--- a/plugins/pubsub.lua Sun Jan 01 22:17:39 2012 +0100 +++ b/plugins/pubsub.lua Sun Jan 01 22:48:11 2012 +0100 @@ -202,8 +202,9 @@ error("Not implemented yet."); end -function pubsub_node:unsubscribe(callback) - error("Not implemented yet."); +function pubsub_node:unsubscribe(jid, callback) + self.stream:send_iq(pubsub_iq("set", self.service, nil, "unsubscribe", self.node, jid) + , callback); end function pubsub_node:configure_subscription(options, callback)