aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-07-17 20:45:44 +0000
committerBadlop <badlop@process-one.net>2009-07-17 20:45:44 +0000
commit9df56399744becf808e45df39aff8c4b13ce7266 (patch)
tree779ba57b33c1b97fe39cc274435e70f7d68a6b6a /src/mod_muc
parentFix updating pending subscriptions (EJAB-980) (diff)
Support XEP-0157: Contact Addresses for XMPP Services (EJAB-235)
SVN Revision: 2368
Diffstat (limited to 'src/mod_muc')
-rw-r--r--src/mod_muc/mod_muc.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mod_muc/mod_muc.erl b/src/mod_muc/mod_muc.erl
index 2a7242fdf..69f1983fb 100644
--- a/src/mod_muc/mod_muc.erl
+++ b/src/mod_muc/mod_muc.erl
@@ -353,10 +353,14 @@ do_route1(Host, ServerHost, Access, HistorySize, RoomShaper,
case jlib:iq_query_info(Packet) of
#iq{type = get, xmlns = ?NS_DISCO_INFO = XMLNS,
sub_el = _SubEl, lang = Lang} = IQ ->
+ Info = ejabberd_hooks:run_fold(
+ disco_info, ServerHost, [],
+ [ServerHost, ?MODULE, "", ""]),
Res = IQ#iq{type = result,
sub_el = [{xmlelement, "query",
[{"xmlns", XMLNS}],
- iq_disco_info(Lang)}]},
+ iq_disco_info(Lang)
+ ++Info}]},
ejabberd_router:route(To,
From,
jlib:iq_to_xml(Res));