]> granicus.if.org Git - ejabberd/commitdiff
Fix error formatting, which closed client connection (#1389)
authorBadlop <badlop@process-one.net>
Thu, 1 Dec 2016 20:02:35 +0000 (21:02 +0100)
committerBadlop <badlop@process-one.net>
Thu, 1 Dec 2016 20:02:54 +0000 (21:02 +0100)
src/mod_muc_room.erl

index 957220540994ba714942dc5958cd73172b1fa0d5..b66748e64db02ac560d28a3d0b73a83fe7d987f9 100644 (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