]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/getreplies.qc
Merge branch 'master' into Lyberta/WaypointIcons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / getreplies.qc
index e67625a307caac26580d06c7491f3299f8f5e255..3262974898a1a284858dcf3ef325c6eb393569ec 100644 (file)
@@ -1,6 +1,8 @@
 #include "getreplies.qh"
 
-#include <server/defs.qh>
+#include <common/weapons/_all.qh>
+#include <common/stats.qh>
+#include <server/world.qh>
 #include <server/miscfunctions.qh>
 
 #include <common/command/_mod.qh>
@@ -9,8 +11,8 @@
 #include "../race.qh"
 
 #include <common/constants.qh>
+#include <common/gamemodes/_mod.qh>
 #include <common/net_linked.qh>
-#include <common/mapinfo.qh>
 #include <common/util.qh>
 
 #include <common/monsters/_mod.qh>
@@ -20,7 +22,7 @@
 //  Last updated: December 30th, 2011
 // =========================================================
 
-// These strings are set usually during init in g_world.qc,
+// These strings are set usually during init in world.qc,
 // or also by some game modes or other functions manually,
 // and their purpose is to output information to clients
 // without using any extra processing time.
@@ -36,8 +38,9 @@ string getrecords(int page)  // 50 records per page
 
        MapInfo_ClearTemps();
 
-       if (s == "" && page == 0) return "No records are available on this server.\n";
-       else return s;
+       if (s == "" && page == 0)
+               return "No records are available on this server for the current game mode.\n";
+       return s;
 }
 
 string getrankings()