Add /clear for clearing the chat box.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@500 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-18 23:10:32 +00:00
parent 69dd36f101
commit a78728edcb
@@ -1,5 +1,5 @@
//
// $Id: ChatPanel.java,v 1.5 2001/10/18 20:52:58 mdb Exp $
// $Id: ChatPanel.java,v 1.6 2001/10/18 23:10:32 mdb Exp $
package com.threerings.micasa.client;
@@ -167,6 +167,10 @@ public class ChatPanel
// request to send this text as a tell message
_chatdtr.requestTell(username, message);
} else if (text.startsWith("/clear")) {
// clear the chat box
_text.setText("");
} else {
// request to send this text as a chat message
_chatdtr.requestSpeak(text);