adding /topic command - second haf of issue #5
authorJack Allnutt <m2ys4u@Gmail.com>
Wed, 27 Jul 2011 17:55:40 +0000 (18:55 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Wed, 27 Jul 2011 17:55:40 +0000 (18:55 +0100)
js/front.js

index 3cec34706fd0ea2c14187a72e97b7bd23a5b222e..6d7ea950a179384d5fc142d30eb25e6e057d27f1 100644 (file)
@@ -274,6 +274,9 @@ var front = {
                 gateway.quit(msg.split(" ",2)[1]);
                 break;
 
+            case '/topic':
+                gateway.raw('TOPIC ' + front.cur_channel.name + ' :' + msg.split(" ", 2)[1]);
+                break;
                        default:
                                //front.cur_channel.addMsg(null, ' ', '--> Invalid command: '+parts[0].substring(1));
                                gateway.raw(msg.substring(1));