More style-related cleanup.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5247 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-07-22 12:51:17 +00:00
parent 0aa0e48c28
commit 09f8a25876
29 changed files with 48 additions and 64 deletions
@@ -1260,8 +1260,8 @@ public class ChatDirector extends BasicDirector
}
// clear out from the history any tells that are mistypes
for (Iterator iter = _history.iterator(); iter.hasNext(); ) {
String hist = (String)iter.next();
for (Iterator<String> iter = _history.iterator(); iter.hasNext(); ) {
String hist = iter.next();
if (hist.startsWith("/" + command)) {
String harg = hist.substring(command.length() + 1).trim();
// we blow away any historic tells that have msg content
@@ -58,22 +58,19 @@ public class ChatDispatcher extends InvocationDispatcher<ChatMarshaller>
switch (methodId) {
case ChatMarshaller.AWAY:
((ChatProvider)provider).away(
source,
(String)args[0]
source, (String)args[0]
);
return;
case ChatMarshaller.BROADCAST:
((ChatProvider)provider).broadcast(
source,
(String)args[0], (InvocationService.InvocationListener)args[1]
source, (String)args[0], (InvocationService.InvocationListener)args[1]
);
return;
case ChatMarshaller.TELL:
((ChatProvider)provider).tell(
source,
(Name)args[0], (String)args[1], (ChatService.TellListener)args[2]
source, (Name)args[0], (String)args[1], (ChatService.TellListener)args[2]
);
return;
@@ -55,8 +55,7 @@ public class SpeakDispatcher extends InvocationDispatcher<SpeakMarshaller>
switch (methodId) {
case SpeakMarshaller.SPEAK:
((SpeakProvider)provider).speak(
source,
(String)args[0], ((Byte)args[1]).byteValue()
source, (String)args[0], ((Byte)args[1]).byteValue()
);
return;
@@ -21,6 +21,7 @@
package com.threerings.crowd.chat.server;
import com.threerings.crowd.chat.client.SpeakService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationProvider;