Added /kick command
authorDarren <darren@darrenwhitlen.com>
Fri, 9 Sep 2011 15:06:54 +0000 (16:06 +0100)
committerDarren <darren@darrenwhitlen.com>
Fri, 9 Sep 2011 15:06:54 +0000 (16:06 +0100)
js/front.js

index c7192473bccf994584746004c291f1c39b26e025..d103456da6a649009680143bacfa0d5c1f79f4bb 100644 (file)
@@ -316,7 +316,12 @@ var front = {
                 }
                 break;
             
-                
+            case '/k':
+            case '/kick':
+                if (typeof parts[1] === 'undefined') return;
+                gateway.raw('KICK ' + front.cur_channel.name + ' ' + msg.split(' ', 2)[1]);
+                break;
+
             case '/quote':
                 gateway.raw(msg.replace(/^\/quote /i, ''));
                 break;