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

Revert "Hook on group message"

This reverts commit b81250d667.
This commit is contained in:
Badlop 2015-04-15 11:49:49 +02:00
parent 63d6d68979
commit a5adaf5798

View File

@ -2456,8 +2456,6 @@ add_message_to_history(FromNick, FromJID, Packet, StateData) ->
Q1 = lqueue_in({FromNick, TSPacket, HaveSubject, Q1 = lqueue_in({FromNick, TSPacket, HaveSubject,
calendar:now_to_universal_time(TimeStamp), Size}, calendar:now_to_universal_time(TimeStamp), Size},
StateData#state.history), 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), add_to_log(text, {FromNick, Packet}, StateData),
StateData#state{history = Q1}. StateData#state{history = Q1}.