Update mod_post_log to work with ejabberd 15.06

This commit is contained in:
Holger Weiss 2015-06-25 21:31:04 +02:00
parent 00267eeb71
commit 94a439726b
1 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@
-export([start/2,
stop/1,
log_user_send/3,
log_user_send/4,
post_result/1]).
-include("ejabberd.hrl").
@ -36,8 +36,9 @@ stop(Host) ->
?MODULE, log_user_send, 50),
ok.
log_user_send(From, To, Packet) ->
ok = log_packet(From, To, Packet).
log_user_send(Packet, _C2SState, From, To) ->
ok = log_packet(From, To, Packet),
Packet.
log_packet(From, To, #xmlel{name = <<"message">>} = Packet) ->
ok = log_message(From, To, Packet);