From 315d66868ff887500daae10f96f90524588c7f8f Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Thu, 25 Jun 2015 21:31:04 +0200 Subject: [PATCH] Update mod_post_log to work with ejabberd 15.06 --- mod_post_log/src/mod_post_log.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod_post_log/src/mod_post_log.erl b/mod_post_log/src/mod_post_log.erl index 571116d..65af872 100644 --- a/mod_post_log/src/mod_post_log.erl +++ b/mod_post_log/src/mod_post_log.erl @@ -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);