From: Jack Allnutt Date: Wed, 27 Jul 2011 17:55:40 +0000 (+0100) Subject: adding /topic command - second haf of issue #5 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=45c0311627f04e845a1769085a2e2690926dcd2b;p=KiwiIRC.git adding /topic command - second haf of issue #5 --- diff --git a/js/front.js b/js/front.js index 3cec347..6d7ea95 100644 --- a/js/front.js +++ b/js/front.js @@ -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));