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:
parent
87b964a7f6
commit
fc2b71a04e
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user