plugins/pubsub.lua

changeset 332
6ecf44918156
parent 283
39ce7535887c
child 333
36e9d5a2ae79
--- 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

mercurial