Diff

plugins/pubsub.lua @ 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
parent 283:39ce7535887c
child 333:36e9d5a2ae79
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