mod_statsdx: Don't stumble over odd resource names
This commit is contained in:
parent
8e157279ca
commit
185fd7bb92
|
@ -224,7 +224,7 @@ remove_user(_User, Server) ->
|
||||||
|
|
||||||
user_send_packet(FromJID, ToJID, NewEl) ->
|
user_send_packet(FromJID, ToJID, NewEl) ->
|
||||||
%% Registrarse para tramitar Host/mod_stats2file
|
%% 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);
|
?MODULE -> received_response(FromJID, ToJID, NewEl);
|
||||||
_ -> ok
|
_ -> ok
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue