Skip to content

Commit 0001ed0

Browse files
committed
Fix some chat commands also registered as server commands
1 parent 8efcdf4 commit 0001ed0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/game/server/gamecontext.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4497,16 +4497,16 @@ void CGameContext::RegisterChatCommands()
44974497
Console()->Register("changelog", "?i[page]", CFGFLAG_CHAT | CFGFLAG_SERVER, ConChangeLog, this, "Display a changelog page");
44984498
Console()->Register("cmdlist", "", CFGFLAG_CHAT, ConCmdList, this, "List of commands");
44994499

4500-
Console()->Register("me", "r[message]", CFGFLAG_CHAT | CFGFLAG_SERVER | CFGFLAG_NONTEEHISTORIC, ConMe, this, "Like the famous irc command '/me says hi' will display '<yourname> says hi'");
4501-
Console()->Register("w", "s[player name] r[message]", CFGFLAG_CHAT | CFGFLAG_SERVER | CFGFLAG_NONTEEHISTORIC, ConWhisper, this, "Whisper something to someone (private message)");
4502-
Console()->Register("whisper", "s[player name] r[message]", CFGFLAG_CHAT | CFGFLAG_SERVER | CFGFLAG_NONTEEHISTORIC, ConWhisper, this, "Whisper something to someone (private message)");
4503-
Console()->Register("c", "r[message]", CFGFLAG_CHAT | CFGFLAG_SERVER | CFGFLAG_NONTEEHISTORIC, ConConverse, this, "Converse with the last person you whispered to (private message)");
4504-
Console()->Register("converse", "r[message]", CFGFLAG_CHAT | CFGFLAG_SERVER | CFGFLAG_NONTEEHISTORIC, ConConverse, this, "Converse with the last person you whispered to (private message)");
4505-
Console()->Register("msg", "s[player or group name] r[message]", CFGFLAG_CHAT | CFGFLAG_SERVER | CFGFLAG_NONTEEHISTORIC, ConConverse, this, "Check '/help msg' for details");
4500+
Console()->Register("me", "r[message]", CFGFLAG_CHAT | CFGFLAG_NONTEEHISTORIC, ConMe, this, "Like the famous irc command '/me says hi' will display '<yourname> says hi'");
4501+
Console()->Register("w", "s[player name] r[message]", CFGFLAG_CHAT | CFGFLAG_NONTEEHISTORIC, ConWhisper, this, "Whisper something to someone (private message)");
4502+
Console()->Register("whisper", "s[player name] r[message]", CFGFLAG_CHAT | CFGFLAG_NONTEEHISTORIC, ConWhisper, this, "Whisper something to someone (private message)");
4503+
Console()->Register("c", "r[message]", CFGFLAG_CHAT | CFGFLAG_NONTEEHISTORIC, ConConverse, this, "Converse with the last person you whispered to (private message)");
4504+
Console()->Register("converse", "r[message]", CFGFLAG_CHAT | CFGFLAG_NONTEEHISTORIC, ConConverse, this, "Converse with the last person you whispered to (private message)");
4505+
Console()->Register("msg", "s[player or group name] r[message]", CFGFLAG_CHAT | CFGFLAG_NONTEEHISTORIC, ConConverse, this, "Check '/help msg' for details");
45064506

4507-
Console()->Register("mute", "r[player name]", CFGFLAG_CHAT | CFGFLAG_SERVER, ConMute, this, "Mute player with specified id for x minutes for any reason");
4507+
Console()->Register("mute", "r[player name]", CFGFLAG_CHAT, ConMute, this, "Mute player with specified id for x minutes for any reason");
45084508

4509-
Console()->Register("timeout", "?s[code]", CFGFLAG_CHAT | CFGFLAG_SERVER, ConTimeout, this, "Set timeout protection code s");
4509+
Console()->Register("timeout", "?s[code]", CFGFLAG_CHAT, ConTimeout, this, "Set timeout protection code s");
45104510

45114511
static char aLangs[256] = {};
45124512
if(!aLangs[0] && Server()->Localization())
@@ -4527,8 +4527,8 @@ void CGameContext::RegisterChatCommands()
45274527

45284528
if(aLangs[0])
45294529
{
4530-
Console()->Register("language", aLangs, CFGFLAG_CHAT | CFGFLAG_SERVER, ConLanguage, this, "Set the language");
4531-
Console()->Register("lang", aLangs, CFGFLAG_CHAT | CFGFLAG_SERVER, ConLanguage, this, "Set the language");
4530+
Console()->Register("language", aLangs, CFGFLAG_CHAT, ConLanguage, this, "Set the language");
4531+
Console()->Register("lang", aLangs, CFGFLAG_CHAT, ConLanguage, this, "Set the language");
45324532
}
45334533
}
45344534

0 commit comments

Comments
 (0)