# HG changeset patch # User Kim Alvefur # Date 1360516471 -3600 # Node ID 6ecf44918156d6fcd9aec54a976aee6108cab0c9 # Parent d23bb21668a7f6a4fc5610cd31933c0a0e9b5d4e plugins.pubsub: Explicitly subscribe with our current full jid as default diff -r d23bb21668a7 -r 6ecf44918156 plugins/pubsub.lua --- a/plugins/pubsub.lua Sun Feb 10 18:06:43 2013 +0100 +++ b/plugins/pubsub.lua Sun Feb 10 18:14:31 2013 +0100 @@ -197,6 +197,7 @@ end function pubsub_node:subscribe(jid, options, callback) + jid = jid or self.stream.jid; if options ~= nil then error("Subscription configuration is not implemented yet."); end