X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/0248a518996a6bf532cd4d91e8bcab8dde60cee1..d925d235c289dd7abd89fe618199a27255ad6d07:/webclient/rc.html?ds=inline diff --git a/webclient/rc.html b/webclient/rc.html index a896281..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"); @@ -160,7 +171,7 @@  
- +