25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix error formatting, which closed client connection (#1389)

This commit is contained in:
Badlop 2016-12-01 21:02:35 +01:00
parent 68cf6845e1
commit 34f2a8a4f2

View File

@ -2723,8 +2723,8 @@ find_changed_items(UJID, UAffiliation, URole,
Nick /= <<"">> ->
case find_jids_by_nick(Nick, StateData) of
[] ->
ErrText = {<<"Nickname ~s does not exist in the room">>,
[Nick]},
ErrText = str:format(<<"Nickname ~s does not exist in the room">>,
[Nick]),
throw({error, xmpp:err_not_acceptable(ErrText, Lang)});
JIDList ->
JIDList