From a9165cd7a05b5c0d25aa9f4eb56ddf264832b202 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 21 Jul 2012 18:34:24 +0200 Subject: [PATCH] removed no longer needed server dummy commands --- src/engine/client/client.cpp | 10 ---------- src/game/client/gameclient.cpp | 18 ------------------ 2 files changed, 28 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 18e19c901..d83fc7b2d 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -2230,16 +2230,6 @@ void CClient::ConchainServerBrowserUpdate(IConsole::IResult *pResult, void *pUse void CClient::RegisterCommands() { m_pConsole = Kernel()->RequestInterface(); - // register server dummy commands for tab completion - m_pConsole->Register("kick", "i?r", CFGFLAG_SERVER, 0, 0, "Kick player with specified id for any reason"); - m_pConsole->Register("ban", "s?ir", CFGFLAG_SERVER, 0, 0, "Ban player with ip/id for x minutes for any reason"); - m_pConsole->Register("unban", "s", CFGFLAG_SERVER, 0, 0, "Unban ip"); - m_pConsole->Register("bans", "", CFGFLAG_SERVER, 0, 0, "Show banlist"); - m_pConsole->Register("status", "", CFGFLAG_SERVER, 0, 0, "List players"); - m_pConsole->Register("shutdown", "", CFGFLAG_SERVER, 0, 0, "Shut down"); - m_pConsole->Register("record", "?s", CFGFLAG_SERVER, 0, 0, "Record to a file"); - m_pConsole->Register("stoprecord", "", CFGFLAG_SERVER, 0, 0, "Stop recording"); - m_pConsole->Register("reload", "", CFGFLAG_SERVER, 0, 0, "Reload the map"); m_pConsole->Register("quit", "", CFGFLAG_CLIENT|CFGFLAG_STORE, Con_Quit, this, "Quit Teeworlds"); m_pConsole->Register("exit", "", CFGFLAG_CLIENT|CFGFLAG_STORE, Con_Quit, this, "Quit Teeworlds"); diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 7bcd8a8bc..18a7e0221 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -178,24 +178,6 @@ void CGameClient::OnConsoleInit() Console()->Register("kill", "", CFGFLAG_CLIENT, ConKill, this, "Kill yourself"); Console()->Register("ready_change", "", CFGFLAG_CLIENT, ConReadyChange, this, "Change ready state"); - // register server dummy commands for tab completion - Console()->Register("tune", "si", CFGFLAG_SERVER, 0, 0, "Tune variable to value"); - Console()->Register("tune_reset", "", CFGFLAG_SERVER, 0, 0, "Reset tuning"); - Console()->Register("tune_dump", "", CFGFLAG_SERVER, 0, 0, "Dump tuning"); - Console()->Register("change_map", "?r", CFGFLAG_SERVER, 0, 0, "Change map"); - Console()->Register("restart", "?i", CFGFLAG_SERVER, 0, 0, "Restart in x seconds"); - Console()->Register("broadcast", "r", CFGFLAG_SERVER, 0, 0, "Broadcast message"); - Console()->Register("say", "r", CFGFLAG_SERVER, 0, 0, "Say in chat"); - Console()->Register("set_team", "ii?i", CFGFLAG_SERVER, 0, 0, "Set team of player to team"); - Console()->Register("set_team_all", "i", CFGFLAG_SERVER, 0, 0, "Set team of all players to team"); - Console()->Register("add_vote", "sr", CFGFLAG_SERVER, 0, 0, "Add a voting option"); - Console()->Register("remove_vote", "s", CFGFLAG_SERVER, 0, 0, "remove a voting option"); - Console()->Register("force_vote", "ss?r", CFGFLAG_SERVER, 0, 0, "Force a voting option"); - Console()->Register("clear_votes", "", CFGFLAG_SERVER, 0, 0, "Clears the voting options"); - Console()->Register("vote", "r", CFGFLAG_SERVER, 0, 0, "Force a vote to yes/no"); - Console()->Register("swap_teams", "", CFGFLAG_SERVER, 0, 0, "Swap the current teams"); - Console()->Register("shuffle_teams", "", CFGFLAG_SERVER, 0, 0, "Shuffle the current teams"); - for(int i = 0; i < m_All.m_Num; i++) m_All.m_paComponents[i]->m_pClient = this;