From 2a95a53285d743696dd5e1bdd4b3497cd9a2d7da Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 6 Jul 2017 19:21:53 +0200 Subject: [PATCH] Fix typos in previous commit (#218) --- mod_logxml/src/mod_logxml.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod_logxml/src/mod_logxml.erl b/mod_logxml/src/mod_logxml.erl index 42a03b8..4c66378 100644 --- a/mod_logxml/src/mod_logxml.erl +++ b/mod_logxml/src/mod_logxml.erl @@ -171,11 +171,11 @@ send_packet({P, State}) -> Proc ! {addlog, {send, FromJID, ToJID, P}}, {P, State}. -receive_packet(P, State}) -> +receive_packet({P, State}) -> {FromJID, ToJID} = get_from_to(P), - Host = To#jid.lserver, + Host = ToJID#jid.lserver, Proc = gen_mod:get_module_proc(Host, ?PROCNAME), - Proc ! {addlog, {recv, From, To, P}}, + Proc ! {addlog, {recv, FromJID, ToJID, P}}, {P, State}. get_from_to(Packet) ->