diff options
author | Badlop <badlop@process-one.net> | 2009-07-17 20:45:44 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-07-17 20:45:44 +0000 |
commit | 9df56399744becf808e45df39aff8c4b13ce7266 (patch) | |
tree | 779ba57b33c1b97fe39cc274435e70f7d68a6b6a /src/mod_pubsub | |
parent | Fix updating pending subscriptions (EJAB-980) (diff) |
Support XEP-0157: Contact Addresses for XMPP Services (EJAB-235)
SVN Revision: 2368
Diffstat (limited to 'src/mod_pubsub')
-rw-r--r-- | src/mod_pubsub/mod_pubsub.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index e97bf69b9..58e571509 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -888,12 +888,15 @@ do_route(ServerHost, Access, Plugins, Host, From, To, Packet) -> sub_el = SubEl, lang = Lang} = IQ -> {xmlelement, _, QAttrs, _} = SubEl, Node = xml:get_attr_s("node", QAttrs), + Info = ejabberd_hooks:run_fold( + disco_info, ServerHost, [], + [ServerHost, ?MODULE, "", ""]), Res = case iq_disco_info(Host, Node, From, Lang) of {result, IQRes} -> jlib:iq_to_xml( IQ#iq{type = result, sub_el = [{xmlelement, "query", - QAttrs, IQRes}]}); + QAttrs, IQRes++Info}]}); {error, Error} -> jlib:make_error_reply(Packet, Error) end, |