Fixing multi-word quit messges. Bug #28
authorJack Allnutt <m2ys4u@Gmail.com>
Sat, 17 Sep 2011 17:35:57 +0000 (18:35 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Sat, 17 Sep 2011 17:35:57 +0000 (18:35 +0100)
js/front.js

index b699f7cb3b7935d96512051eb2ed54c3a9d658da..cc606e1ec7f8bf61cef69d2b4bee150729d3a5ab 100644 (file)
@@ -380,7 +380,7 @@ kiwi.front = {
                 break;
 
             case '/quit':
-                kiwi.gateway.quit(msg.split(" ", 2)[1]);
+                kiwi.gateway.quit(parts.slice(1).join(' '));
                 break;
 
             case '/topic':