Changeset

332:6ecf44918156

plugins.pubsub: Explicitly subscribe with our current full jid as default
author Kim Alvefur <zash@zash.se>
date Sun, 10 Feb 2013 18:14:31 +0100
parents 331:d23bb21668a7
children 333:36e9d5a2ae79
files plugins/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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