about summary refs log tree commit diff
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2014-11-08 00:54:29 +0100
committerdef <dennis@felsin9.de>2014-11-08 00:54:29 +0100
commit6c723f52695a584c15ad92005234a2f1003d68ca (patch)
tree63330806e09951bc8a2ebb8377d7f775cb0818d5
parentc4f71701a8a864ed3d08fd3a2928b84b9581da92 (diff)
parent69fc4084a9bead155a6b35dbfaa2b4315c534d94 (diff)
downloadzcatch-6c723f52695a584c15ad92005234a2f1003d68ca.tar.gz
zcatch-6c723f52695a584c15ad92005234a2f1003d68ca.zip
Merge branch 'zCatch' of github.com:savander/zcatch into zCatch
-rw-r--r--datasrc/network.py2
-rw-r--r--src/game/server/gamecontext.cpp2
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.");