# HG changeset patch # User Kim Alvefur # Date 1325454491 -3600 # Node ID e1833e9bd25b1f7e0935380ecb4a2a9a5906d489 # Parent c9d8628a61cc121898c489a499f36427995c62e0 plugins.pubsub: Implement unsubscribe. diff -r c9d8628a61cc -r e1833e9bd25b plugins/pubsub.lua --- 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)