25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Don't stop irc table conversion on broken JIDs

This commit is contained in:
Evgeniy Khramtsov 2014-06-09 10:35:52 +04:00
parent 6f4b4ad087
commit c485aea48b

View File

@ -1229,10 +1229,16 @@ data_to_binary(JID, Data) ->
try
[conn_param_to_binary(Param)]
catch _:_ ->
?ERROR_MSG("failed to convert parameter "
" ~p for user ~s",
[Param, jlib:jid_to_string(JID)]),
[]
if JID /= error ->
?ERROR_MSG("failed to convert "
"parameter ~p for user ~s",
[Param,
jlib:jid_to_string(JID)]);
true ->
?ERROR_MSG("failed to convert "
"parameter ~p",
[Param])
end
end
end, Params)};
(Opt) ->