From 2d427102707f03dd1a35971293c9cb70d43c7c01 Mon Sep 17 00:00:00 2001
From: Andy Janata <ajanata@gmail.com>
Date: Mon, 12 Mar 2012 19:49:36 -0700
Subject: [PATCH] don't send blank chats to the server

---
 WebContent/js/cah.app.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/WebContent/js/cah.app.js b/WebContent/js/cah.app.js
index 1ce9719..b077517 100644
--- a/WebContent/js/cah.app.js
+++ b/WebContent/js/cah.app.js
@@ -106,6 +106,9 @@ function chat_keyup(e) {
  */
 function chatsubmit_click() {
   var text = $.trim($("#chat").val());
+  if (text == "") {
+    return;
+  }
   // TODO when I get multiple channels working, this needs to know active and pass it
   cah.Ajax.build(cah.$.AjaxOperation.CHAT).withMessage(text).run();
   cah.log.status("<" + cah.nickname + "> " + text);