Be sure to filter away messages as well, because they nastily show up as
feedback, and not a user type of chat. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2800 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ChatDirector.java,v 1.51 2003/09/18 18:13:28 mdb Exp $
|
// $Id: ChatDirector.java,v 1.52 2003/09/22 19:15:12 ray Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.chat.client;
|
package com.threerings.crowd.chat.client;
|
||||||
|
|
||||||
@@ -371,9 +371,12 @@ public class ChatDirector extends BasicDirector
|
|||||||
|
|
||||||
// if they have an away message, report that
|
// if they have an away message, report that
|
||||||
if (awayMessage != null) {
|
if (awayMessage != null) {
|
||||||
String msg = MessageBundle.tcompose(
|
awayMessage = filter(awayMessage, target, false);
|
||||||
"m.recipient_afk", target, awayMessage);
|
if (awayMessage != null) {
|
||||||
displayFeedback(_bundle, msg);
|
String msg = MessageBundle.tcompose(
|
||||||
|
"m.recipient_afk", target, awayMessage);
|
||||||
|
displayFeedback(_bundle, msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if they are idle, report that
|
// if they are idle, report that
|
||||||
@@ -414,6 +417,12 @@ public class ChatDirector extends BasicDirector
|
|||||||
public void setAwayMessage (String message)
|
public void setAwayMessage (String message)
|
||||||
{
|
{
|
||||||
// pass the buck right on along
|
// pass the buck right on along
|
||||||
|
message = filter(message, null, true);
|
||||||
|
if (message == null) {
|
||||||
|
// they filtered away their own away message..
|
||||||
|
// change it to something
|
||||||
|
message = "...";
|
||||||
|
}
|
||||||
_cservice.away(_ctx.getClient(), message);
|
_cservice.away(_ctx.getClient(), message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user