From d925d235c289dd7abd89fe618199a27255ad6d07 Mon Sep 17 00:00:00 2001 From: Jason Hibbs Date: Thu, 2 Aug 2012 18:05:32 -0700 Subject: [PATCH 1/1] /me support --- webclient/rc.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webclient/rc.html b/webclient/rc.html index 3417745..4c05558 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -141,6 +141,17 @@ message = "<" + rcnick() + "> " + input; } + // /me support + var message; + var re = /^\/me (.*)/; + var match = re.exec(input); + var inputme = input.substring(4); + if (match) { + message = "* " + rcnick() + " " + inputme; + } else { + message = "<" + rcnick() + "> " + input; + } + // Remind people to set their nick if (rcnick() == 'anonymous') { rcaddmessagetohistory("-!- Set your nick with /nick"); -- 2.44.1