From 185fd7bb92cd8776a7fb96901a0e1b38f6d6f38c Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 17 Feb 2015 22:31:55 +0100 Subject: [PATCH] mod_statsdx: Don't stumble over odd resource names --- mod_statsdx/src/mod_statsdx.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_statsdx/src/mod_statsdx.erl b/mod_statsdx/src/mod_statsdx.erl index dd9434d..7643ca8 100644 --- a/mod_statsdx/src/mod_statsdx.erl +++ b/mod_statsdx/src/mod_statsdx.erl @@ -224,7 +224,7 @@ remove_user(_User, Server) -> user_send_packet(FromJID, ToJID, NewEl) -> %% Registrarse para tramitar Host/mod_stats2file - case jlib:binary_to_atom(ToJID#jid.lresource) of + case catch binary_to_existing_atom(ToJID#jid.lresource, utf8) of ?MODULE -> received_response(FromJID, ToJID, NewEl); _ -> ok end.