From: Badlop Date: Thu, 1 Dec 2016 20:02:35 +0000 (+0100) Subject: Fix error formatting, which closed client connection (#1389) X-Git-Tag: 16.12~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34f2a8a4f2f075a84bcdd2756b0c70d25fcbcbb6;p=ejabberd Fix error formatting, which closed client connection (#1389) --- diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 957220540..b66748e64 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -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