X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/219b6a2b2ef21772217935e79398305a086000d7..c301e690609e79727844622d29a0931267a27de4:/webclient/rc.html diff --git a/webclient/rc.html b/webclient/rc.html index 2e05a86..a8bc337 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -258,6 +258,8 @@ type = "status"; } else if (/^\* /.test(message.Text)) { type = "me"; + } else if (/^-!- /.test(message.Text)) { + type = "local"; } else { type = "text"; } @@ -472,7 +474,9 @@ function rckeydown(event) { if (event.keyCode == 13) { - rcinput(document.input.say.value); + if (document.input.say.value) { + rcinput(document.input.say.value); + } document.input.say.value = ""; return false; }