diff options
author | Zack Middleton <zturtleman@gmail.com> | 2012-11-01 06:03:15 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:24:46 +0000 |
commit | db1ce00dc02fd8ddf7bb4bf57d64455288d58d21 (patch) | |
tree | 349abca7a3b774de1790953f35d5e8aa79fa4ff5 /src | |
parent | bb9e18b2e399cfbea383c99f135e4d5ad308870d (diff) |
Change more operator commands to require sv_running to be usable. Patch by Ensiform.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/sv_ccmds.c | 14 |
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 ) ); } |