Added the TellHandler.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4168 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,23 +1,17 @@
|
||||
package com.threerings.crowd.chat.client {
|
||||
|
||||
import com.threerings.crowd.util.CrowdContext;
|
||||
|
||||
import com.threerings.crowd.chat.data.ChatCodes;
|
||||
|
||||
public class ClearHandler extends CommandHandler
|
||||
{
|
||||
public function ClearHandler (chatdir :ChatDirector)
|
||||
{
|
||||
_chatdir = chatdir;
|
||||
}
|
||||
|
||||
public override function handleCommand (
|
||||
speakSvc :SpeakService, cmd :String, args :String, history :Array)
|
||||
:String
|
||||
ctx :CrowdContext, speakSvc :SpeakService,
|
||||
cmd :String, args :String, history :Array) :String
|
||||
{
|
||||
_chatdir.clearDisplays();
|
||||
ctx.getChatDirector().clearDisplays();
|
||||
return ChatCodes.SUCCESS;
|
||||
}
|
||||
|
||||
/** Our ChatDirector. */
|
||||
protected var _chatdir :ChatDirector;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user