# HG changeset patch # User Kim Alvefur # Date 1648049137 -3600 # Node ID 60eecdd9c65bac213f5013dc8e2202217df58dec # Parent 0c1684c65716893fa34b53607d569190b7f46f09# Parent 95f33a006c03a84a80e4654327273cbddd1a3c33 Merge 0.12->trunk diff -r 0c1684c65716 -r 60eecdd9c65b plugins/mod_external_services.lua --- a/plugins/mod_external_services.lua Tue Mar 22 18:07:11 2022 +0100 +++ b/plugins/mod_external_services.lua Wed Mar 23 16:25:37 2022 +0100 @@ -192,7 +192,7 @@ local action = stanza.tags[1]; if origin.type ~= "c2s" then - origin.send(st.error_reply(stanza, "auth", "forbidden", "The 'port' and 'type' attributes are required.")); + origin.send(st.error_reply(stanza, "auth", "forbidden")); return true; end @@ -204,7 +204,7 @@ local requested_credentials = set.new(); for service in action:childtags("service") do if not service.attr.type or not service.attr.host then - origin.send(st.error_reply(stanza, "modify", "bad-request")); + origin.send(st.error_reply(stanza, "modify", "bad-request", "The 'port' and 'type' attributes are required.")); return true; end