summaryrefslogtreecommitdiff
path: root/src/server/sv_ccmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/sv_ccmds.c')
-rw-r--r--src/server/sv_ccmds.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/server/sv_ccmds.c b/src/server/sv_ccmds.c
index 8e76fa1f..404742ec 100644
--- a/src/server/sv_ccmds.c
+++ b/src/server/sv_ccmds.c
@@ -243,6 +243,12 @@ Examine the serverinfo string
===========
*/
static void SV_Serverinfo_f( void ) {
+ // make sure server is running
+ if ( !com_sv_running->integer ) {
+ Com_Printf( "Server is not running.\n" );
+ return;
+ }
+
Com_Printf ("Server info settings:\n");
Info_Print ( Cvar_InfoString( CVAR_SERVERINFO ) );
}
@@ -252,10 +258,16 @@ static void SV_Serverinfo_f( void ) {
===========
SV_Systeminfo_f
-Examine or change the serverinfo string
+Examine the systeminfo string
===========
*/
static void SV_Systeminfo_f( void ) {
+ // make sure server is running
+ if ( !com_sv_running->integer ) {
+ Com_Printf( "Server is not running.\n" );
+ return;
+ }
+
Com_Printf ("System info settings:\n");
Info_Print ( Cvar_InfoString_Big( CVAR_SYSTEMINFO ) );
}