diff options
author | Feotov Daniil <hairyhum@gmail.com> | 2015-02-16 16:23:29 +0300 |
---|---|---|
committer | Feotov Daniil <hairyhum@gmail.com> | 2015-02-24 11:06:41 +0300 |
commit | b81250d667c846d30499b5284585597a35c96631 (patch) | |
tree | 7618900841d4b9afa64cbbdd152cf1c3eb87cf13 /src | |
parent | Migration of scram passwords with piefxis (riak and internal only) (diff) |
Hook on group message
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc_room.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 58ac2610b..e9092d4f8 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -2454,6 +2454,8 @@ add_message_to_history(FromNick, FromJID, Packet, StateData) -> Q1 = lqueue_in({FromNick, TSPacket, HaveSubject, calendar:now_to_universal_time(TimeStamp), Size}, StateData#state.history), + ejabberd_hooks:run(offline_group_message_hook, StateData#state.server_host, + [FromJID, FromNick, StateData#state.jid, Packet]), add_to_log(text, {FromNick, Packet}, StateData), StateData#state{history = Q1}. |