From 323e90f66b7fca1186159c235ada0562417735fc Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 27 Aug 2011 20:50:08 +0100 Subject: [PATCH] /msg command fix --- js/front.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/front.js b/js/front.js index 35ecd0a..1c1ec66 100644 --- a/js/front.js +++ b/js/front.js @@ -301,6 +301,17 @@ var front = { front.tabviewAdd(parts[1]); } break; + + + case '/m': + case '/msg': + if (typeof parts[1] !== "undefined") { + var msg_sliced = msg.split(' ').slice(2).join(' '); + gateway.msg(parts[1], msg_sliced); + front.cur_channel.addMsg(null, gateway.nick, msg_sliced); + } + break; + case '/quote': gateway.raw(msg.replace(/^\/quote /i, '')); -- 2.25.1