diff --git a/client/js/chat.js b/client/js/chat.js index 326898d1..f7eb7a2d 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -291,7 +291,7 @@ $(function() { }); function complete(word) { - var words = commands; + var words = commands.slice(); var users = $(this).closest(".window") .find(".users .user") .each(function() {