diff options
| author | def <dennis@felsin9.de> | 2014-11-08 00:54:29 +0100 |
|---|---|---|
| committer | def <dennis@felsin9.de> | 2014-11-08 00:54:29 +0100 |
| commit | 6c723f52695a584c15ad92005234a2f1003d68ca (patch) | |
| tree | 63330806e09951bc8a2ebb8377d7f775cb0818d5 | |
| parent | c4f71701a8a864ed3d08fd3a2928b84b9581da92 (diff) | |
| parent | 69fc4084a9bead155a6b35dbfaa2b4315c534d94 (diff) | |
| download | zcatch-6c723f52695a584c15ad92005234a2f1003d68ca.tar.gz zcatch-6c723f52695a584c15ad92005234a2f1003d68ca.zip | |
Merge branch 'zCatch' of github.com:savander/zcatch into zCatch
| -rw-r--r-- | datasrc/network.py | 2 | ||||
| -rw-r--r-- | src/game/server/gamecontext.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/datasrc/network.py b/datasrc/network.py index cd5f5aee..86605b6a 100644 --- a/datasrc/network.py +++ b/datasrc/network.py @@ -340,4 +340,6 @@ Messages = [ NetStringStrict("m_Value"), NetStringStrict("m_Reason"), ]), + + NetMessage("Cl_IsDDNet", []), ] diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 8c7bac51..0c564928 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -881,6 +881,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) SendChatTarget(ClientID, "Commands list: top5, rank, help, victims, kills, w, whisper, c, converse"); } +#if defined(CONF_SQL) else if(!str_comp_nocase("top5", pMsg->m_pMessage + 1) || !str_comp_nocase_num("top5 ", pMsg->m_pMessage + 1, 5)) { if(!str_comp_nocase_num("top5 ", pMsg->m_pMessage + 1, 5)){ @@ -905,6 +906,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) m_Ranking->ShowRanking(ClientID, Server()->ClientName(ClientID)); } } +#endif else if(!str_comp_nocase("help", pMsg->m_pMessage + 1)) { SendChatTarget(ClientID, "/rank <name> or /rank - show position in ranking."); |