25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Restore muc_invite_hook (#1467)

This commit is contained in:
Evgeniy Khramtsov 2017-01-19 18:24:29 +03:00
parent 87b964a7f6
commit fc2b71a04e

View File

@ -3956,6 +3956,9 @@ route_invitation(From, Invitation, Lang, StateData) ->
Msg = #message{type = normal,
body = xmpp:mk_text(Body),
sub_els = [XUser, XConference]},
ejabberd_hooks:run(muc_invite, StateData#state.server_host,
[StateData#state.jid, StateData#state.config,
From, JID, Reason]),
ejabberd_router:route(StateData#state.jid, JID, Msg),
JID.