This should use the new getChatName() method.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@757 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mike Thomas
2008-10-10 01:26:23 +00:00
parent 40445fa7f9
commit 9cf566de38
@@ -85,10 +85,10 @@ public class SpotSceneRegistry extends SceneRegistry
public void sendClusterChatMessage (int sceneId, int speakerOid, Name speaker, public void sendClusterChatMessage (int sceneId, int speakerOid, Name speaker,
String bundle, String message, byte mode) String bundle, String message, byte mode)
{ {
sendClusterChatMessage(sceneId, speakerOid, sendClusterChatMessage(sceneId, speakerOid,
new UserMessage(speaker, bundle, message, mode)); new UserMessage(speaker, bundle, message, mode));
} }
/** /**
* Sends a cluster chat notification to the specified location in the specified place object * Sends a cluster chat notification to the specified location in the specified place object
* originating with the specified speaker. * originating with the specified speaker.
@@ -104,7 +104,7 @@ public class SpotSceneRegistry extends SceneRegistry
SpotSceneManager smgr = (SpotSceneManager)getSceneManager(sceneId); SpotSceneManager smgr = (SpotSceneManager)getSceneManager(sceneId);
if (smgr == null) { if (smgr == null) {
log.warning("User requested cluster chat in non-existent scene " + log.warning("User requested cluster chat in non-existent scene " +
"[user=" + message.speaker + ", sceneId=" + sceneId + "[user=" + message.speaker + ", sceneId=" + sceneId +
", message=" + message + "]."); ", message=" + message + "].");
return; return;
} }
@@ -223,7 +223,7 @@ public class SpotSceneRegistry extends SceneRegistry
SpeakUtil.sendFeedback(source, MessageManager.GLOBAL_BUNDLE, errmsg); SpeakUtil.sendFeedback(source, MessageManager.GLOBAL_BUNDLE, errmsg);
} else { } else {
sendClusterChatMessage(ScenePlace.getSceneId(source), source.getOid(), sendClusterChatMessage(ScenePlace.getSceneId(source), source.getOid(),
source.getVisibleName(), null, message, mode); source.getChatName(), null, message, mode);
} }
} }
} }