diff options
| -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."); |