From 45c0311627f04e845a1769085a2e2690926dcd2b Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Wed, 27 Jul 2011 18:55:40 +0100 Subject: [PATCH] adding /topic command - second haf of issue #5 --- js/front.js | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.25.1