aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 7b89aaed..4b37946d 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -572,7 +572,8 @@ function handlers.set_options(origin, stanza, options, service)
origin.send(pubsub_error_reply(stanza, "not-subscribed"));
return true;
end
- local new_subopts, err = subscribe_options_form:data(options.tags[1]);
+ local old_subopts = ret;
+ local new_subopts, err = subscribe_options_form:data(options.tags[1], old_subopts);
if not new_subopts then
origin.send(pubsub_error_reply(stanza, ret));
return true;