mod_pubsub: Ignore subscription options for now, fixes traceback due to missing form
authorKim Alvefur <zash@zash.se>
Thu, 24 Jan 2013 16:36:48 +0100
changeset 5308 fd3219d64414
parent 5307 d80e56d8805c
child 5309 2da869d95271
mod_pubsub: Ignore subscription options for now, fixes traceback due to missing form
plugins/mod_pubsub.lua
--- a/plugins/mod_pubsub.lua	Thu Jan 24 00:59:32 2013 +0100
+++ b/plugins/mod_pubsub.lua	Thu Jan 24 16:36:48 2013 +0100
@@ -111,10 +111,13 @@
 
 function handlers.set_subscribe(origin, stanza, subscribe)
 	local node, jid = subscribe.attr.node, subscribe.attr.jid;
+	--[[
 	local options_tag, options = stanza.tags[1]:get_child("options"), nil;
 	if options_tag then
 		options = options_form:data(options_tag.tags[1]);
 	end
+	--]]
+	local options_tag, options; -- FIXME
 	local ok, ret = service:add_subscription(node, stanza.attr.from, jid, options);
 	local reply;
 	if ok then