Software /
code /
verse
Changeset
272:e1833e9bd25b
plugins.pubsub: Implement unsubscribe.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 01 Jan 2012 22:48:11 +0100 |
parents | 271:c9d8628a61cc |
children | 273:c5b7a4c717a6 |
files | plugins/pubsub.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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)