24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02: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 /= <<"">> -> Nick /= <<"">> ->
case find_jids_by_nick(Nick, StateData) of case find_jids_by_nick(Nick, StateData) of
[] -> [] ->
ErrText = {<<"Nickname ~s does not exist in the room">>, ErrText = str:format(<<"Nickname ~s does not exist in the room">>,
[Nick]}, [Nick]),
throw({error, xmpp:err_not_acceptable(ErrText, Lang)}); throw({error, xmpp:err_not_acceptable(ErrText, Lang)});
JIDList -> JIDList ->
JIDList JIDList