aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_irc.erl14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mod_irc.erl b/src/mod_irc.erl
index 88f53a1c6..7b31a26a4 100644
--- a/src/mod_irc.erl
+++ b/src/mod_irc.erl
@@ -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) ->