]> granicus.if.org Git - ejabberd/commitdiff
Restore muc_invite_hook (#1467)
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 19 Jan 2017 15:24:29 +0000 (18:24 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 19 Jan 2017 15:24:29 +0000 (18:24 +0300)
src/mod_muc_room.erl

index 27d1bc4ccff48bcc4265990333d6ec38bc2b0223..f524fb7ccc9bdb6833679c9e9c7aeb7a476cca3d 100644 (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.