aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2016-12-01 21:02:35 +0100
committerBadlop <badlop@process-one.net>2016-12-01 21:02:54 +0100
commit34f2a8a4f2f075a84bcdd2756b0c70d25fcbcbb6 (patch)
treecd1058343be5a0d4b6df2a743adb9f748742f426 /src
parentFix mod_http_api_mock_test on 19.1 (diff)
Fix error formatting, which closed client connection (#1389)
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_room.erl4
1 files changed, 2 insertions, 2 deletions
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