Don't send empty chat requests.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3750 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-11-09 07:32:35 +00:00
parent 596d2a4708
commit 6dc12423ee
@@ -158,6 +158,10 @@ public class ChatView extends BContainer
displayError("Error: unknown slash command.");
return false;
} else if (text.length() == 0) {
// no empty banter
return false;
} else {
// request to send this text as a chat message
_chatdtr.requestSpeak(null, text, ChatCodes.DEFAULT_MODE);