From 23b4bc74b9989244d2c7ba6b34221581b7a78d06 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Sun, 15 Jun 2014 16:36:22 +0200 Subject: [PATCH] Minor bugfix --- client/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/chat.js b/client/js/chat.js index 326898d..f7eb7a2 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() {