mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Merge pull request #1338 from marcphilipp/muc_invite_hook
Introduce muc_invite hook
This commit is contained in:
commit
90acec8a2b
@ -5056,6 +5056,8 @@ process_invitations(From, InviteEls, Lang, StateData) ->
|
|||||||
throw({error, ?ERRT_JID_MALFORMED(Lang, Txt)});
|
throw({error, ?ERRT_JID_MALFORMED(Lang, Txt)});
|
||||||
JID1 -> JID1
|
JID1 -> JID1
|
||||||
end,
|
end,
|
||||||
|
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),
|
ejabberd_router:route(StateData#state.jid, JID, Msg),
|
||||||
JID
|
JID
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user