diff --git a/client/js/chat.js b/client/js/chat.js index 43cc60d0..f42b532e 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -345,8 +345,8 @@ $(function() { }); return $.grep( words, - function(cmd) { - return !cmd.indexOf(word); + function(w) { + return !w.toLowerCase().indexOf(word.toLowerCase()); } ); }