s/validator/filter/ in an appropriate place, and some other comment widening
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5822 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -123,8 +123,7 @@ public class ChatDirector extends BasicDirector
|
||||
/**
|
||||
* Returns true if this user should have access to this chat command.
|
||||
*/
|
||||
public boolean checkAccess (BodyObject user)
|
||||
{
|
||||
public boolean checkAccess (BodyObject user) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -209,7 +208,7 @@ public class ChatDirector extends BasicDirector
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the specified chat validator from the list of chat validators.
|
||||
* Removes the specified chat filter from the list of chat filter.
|
||||
*/
|
||||
public void removeChatFilter (ChatFilter filter)
|
||||
{
|
||||
@@ -259,8 +258,8 @@ public class ChatDirector extends BasicDirector
|
||||
* @param msg the message bundle via which the slash command will be translated (as
|
||||
* <code>c.</code><i>command</i>). If no translation exists the command will be
|
||||
* <code>/</code><i>command</i>.
|
||||
* @param command the name of the command that will be used to invoke this handler
|
||||
* (e.g. <code>tell</code> if the command will be invoked as <code>/tell</code>).
|
||||
* @param command the name of the command that will be used to invoke this handler (e.g.
|
||||
* <code>tell</code> if the command will be invoked as <code>/tell</code>).
|
||||
* @param handler the chat command handler itself.
|
||||
*/
|
||||
public void registerCommandHandler (MessageBundle msg, String command, CommandHandler handler)
|
||||
@@ -570,7 +569,7 @@ public class ChatDirector extends BasicDirector
|
||||
if (message != null) {
|
||||
message = filter(message, null, true);
|
||||
if (message == null) {
|
||||
// they filtered away their own away message.. change it to something
|
||||
// they filtered away their own away message... change it to something
|
||||
message = "...";
|
||||
}
|
||||
}
|
||||
@@ -838,8 +837,7 @@ public class ChatDirector extends BasicDirector
|
||||
* @param capFirst if true, the first letter of the text is capitalized. This is not desired if
|
||||
* the chat is already an emote.
|
||||
*/
|
||||
protected String mogrifyChat (
|
||||
String text, boolean transformsAllowed, boolean capFirst)
|
||||
protected String mogrifyChat (String text, boolean transformsAllowed, boolean capFirst)
|
||||
{
|
||||
int tlen = text.length();
|
||||
if (tlen == 0) {
|
||||
|
||||
Reference in New Issue
Block a user