Update mod_post_log to work with ejabberd 15.06
This commit is contained in:
parent
f35d3021f6
commit
315d66868f
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
-export([start/2,
|
-export([start/2,
|
||||||
stop/1,
|
stop/1,
|
||||||
log_user_send/3,
|
log_user_send/4,
|
||||||
post_result/1]).
|
post_result/1]).
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
|
@ -36,8 +36,9 @@ stop(Host) ->
|
||||||
?MODULE, log_user_send, 50),
|
?MODULE, log_user_send, 50),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
log_user_send(From, To, Packet) ->
|
log_user_send(Packet, _C2SState, From, To) ->
|
||||||
ok = log_packet(From, To, Packet).
|
ok = log_packet(From, To, Packet),
|
||||||
|
Packet.
|
||||||
|
|
||||||
log_packet(From, To, #xmlel{name = <<"message">>} = Packet) ->
|
log_packet(From, To, #xmlel{name = <<"message">>} = Packet) ->
|
||||||
ok = log_message(From, To, Packet);
|
ok = log_message(From, To, Packet);
|
||||||
|
|
Loading…
Reference in New Issue