diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-02-14 17:00:13 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-02-14 17:00:13 +0100 |
commit | 36c01fd8d8d708debb96136eec28b29c2a63fdbd (patch) | |
tree | 4256af64f5fe5048f6aa42b9b33eb145d60b1f9c | |
parent | 69b93c3e2a94a71c31f1a7e8280fd99e19845538 (diff) |
Fix console being unable to send PMs. Remove logging of successful admin commands.
-rw-r--r-- | src/game/g_admin.c | 4 | ||||
-rw-r--r-- | src/game/g_svcmds.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 306ae30..f9f40cb 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -865,8 +865,8 @@ static void admin_log_abort( void ) static void admin_log_end( const qboolean ok ) { - if( adminLog[ 0 ] ) - G_LogPrintf( "AdminExec: %s: %s\n", ok ? "ok" : "fail", adminLog ); + if( adminLog[ 0 ] && !ok ) + G_LogPrintf( "AdminExec: fail: %s\n", adminLog ); admin_log_abort( ); } diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c index 18f0fdf..c9dd825 100644 --- a/src/game/g_svcmds.c +++ b/src/game/g_svcmds.c @@ -647,7 +647,6 @@ struct svcmd { "listmaps", qtrue, Svcmd_ListMapsWrapper }, { "listemoticons", qtrue, Svcmd_ListEmoticonsWrapper }, { "loadcensors", qfalse, G_LoadCensors }, - { "m", qtrue, Svcmd_MessageWrapper }, { "maplog", qtrue, Svcmd_MapLogWrapper }, { "mapRotation", qfalse, Svcmd_MapRotation_f }, { "pr", qfalse, Svcmd_Pr_f }, |