From db1ce00dc02fd8ddf7bb4bf57d64455288d58d21 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 1 Nov 2012 06:03:15 +0000 Subject: Change more operator commands to require sv_running to be usable. Patch by Ensiform. --- src/server/sv_ccmds.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/server/sv_ccmds.c') 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 ) ); } -- cgit