From 5fbea9511c48ad9a6df597edda8fb06bbbfcbe36 Mon Sep 17 00:00:00 2001 From: "Marius \"Teelevision\" Neugebauer" Date: Wed, 26 Mar 2014 22:04:06 +0100 Subject: adjusted chat commands --- src/game/server/gamecontext.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 66829db2..80bf95a3 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -1,5 +1,6 @@ /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ +/* Modified by Teelevision for zCatch/TeeVi, see readme.txt and license.txt. */ #include #include #include @@ -715,29 +716,18 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) } /* begin zCatch*/ - if(!str_comp("/info", pMsg->m_pMessage) || !str_comp("/about", pMsg->m_pMessage)) + if(!str_comp("/info", pMsg->m_pMessage)) { char aBuf[128]; - str_format(aBuf, sizeof(aBuf), "zCatch version %s by erd and Teetime. Type /cmdlist for all commands.", ZCATCH_VERSION); - SendChatTarget(ClientID, " "); + str_format(aBuf, sizeof(aBuf), "zCatch version %s by erd and Teetime, modified by Teelevision.", ZCATCH_VERSION); SendChatTarget(ClientID, aBuf); - } - else if(!str_comp("/cmdlist", pMsg->m_pMessage)) - { - SendChatTarget(ClientID, " "); - SendChatTarget(ClientID, "/info or /about - see information about author."); - SendChatTarget(ClientID, "/help - learn how to play."); - } - else if(!str_comp("/help", pMsg->m_pMessage)) - { - SendChatTarget(ClientID, " "); SendChatTarget(ClientID, "The winner is the tee which is left over at the end."); SendChatTarget(ClientID, "If you die, all players that you killed will respawn."); SendChatTarget(ClientID, "So the only way to win is to kill every player without beeing killed."); SendChatTarget(ClientID, "Have fun!"); } else if(!str_comp_num("/", pMsg->m_pMessage, 1)) - SendChatTarget(ClientID, "Unknown command."); + SendChatTarget(ClientID, "Unknown command, try /info"); else { //Check if muted -- cgit 1.4.1