Purge the use of the getChatName() hack.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5482 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -90,7 +90,7 @@ public abstract class ChatChannelManager
|
||||
public void speak (ClientObject caller, final ChatChannel channel, String message, byte mode)
|
||||
{
|
||||
final UserMessage umsg = new UserMessage(
|
||||
((BodyObject)caller).getChatName(), null, message, mode);
|
||||
((BodyObject)caller).getVisibleName(), null, message, mode);
|
||||
|
||||
// if we're hosting this channel, dispatch it directly
|
||||
if (_channels.containsKey(channel)) {
|
||||
|
||||
@@ -154,7 +154,7 @@ public class ChatProvider
|
||||
// make sure the requesting user has broadcast privileges
|
||||
InvocationException.requireAccess(caller, ChatCodes.BROADCAST_ACCESS);
|
||||
BodyObject body = (BodyObject)caller;
|
||||
broadcast(body.getChatName(), null, message, false, true);
|
||||
broadcast(body.getVisibleName(), null, message, false, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -256,7 +256,7 @@ public class ChatProvider
|
||||
*/
|
||||
protected UserMessage createTellMessage (BodyObject source, String message)
|
||||
{
|
||||
return new UserMessage(source.getChatName(), message);
|
||||
return new UserMessage(source.getVisibleName(), message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -93,7 +93,7 @@ public class SpeakHandler
|
||||
|
||||
} else {
|
||||
// issue the speak message on our speak object
|
||||
SpeakUtil.sendSpeak(_speakObj, source.getChatName(), null, message, mode);
|
||||
SpeakUtil.sendSpeak(_speakObj, source.getVisibleName(), null, message, mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,15 +86,6 @@ public class BodyObject extends ClientObject
|
||||
return username;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name that should be used for the chat system. The default is to use {@link
|
||||
* #username}.
|
||||
*/
|
||||
public Name getChatName ()
|
||||
{
|
||||
return getVisibleName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a blank occupant info instance that will used to publish information about the
|
||||
* various bodies occupying a place.
|
||||
|
||||
Reference in New Issue
Block a user