plugins.pubsub: Explicitly subscribe with our current full jid as default

Sun, 10 Feb 2013 18:14:31 +0100

author
Kim Alvefur <zash@zash.se>
date
Sun, 10 Feb 2013 18:14:31 +0100
changeset 332
6ecf44918156
parent 331
d23bb21668a7
child 333
36e9d5a2ae79

plugins.pubsub: Explicitly subscribe with our current full jid as default

plugins/pubsub.lua file | annotate | diff | comparison | revisions
--- 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