Give mute feedback

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2390 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2003-04-08 02:49:43 +00:00
parent 77633366cc
commit 758d0a4456
@@ -1,5 +1,5 @@
//
// $Id: MuteDirector.java,v 1.6 2003/03/20 00:46:34 ray Exp $
// $Id: MuteDirector.java,v 1.7 2003/04/08 02:49:43 ray Exp $
package com.threerings.crowd.chat;
@@ -7,6 +7,8 @@ import java.util.HashSet;
import com.samskivert.util.ObserverList;
import com.threerings.util.MessageBundle;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.presents.client.BasicDirector;
@@ -94,6 +96,8 @@ public class MuteDirector extends BasicDirector
public void setMuted (String username, boolean mute)
{
if (mute ? _mutelist.add(username) : _mutelist.remove(username)) {
_chatdir.displayFeedbackMessage(MessageBundle.tcompose(
mute ? "m.muted" : "m.unmuted", username));
notifyObservers(username, mute);
}
}