From 36c01fd8d8d708debb96136eec28b29c2a63fdbd Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 14 Feb 2015 17:00:13 +0100 Subject: Fix console being unable to send PMs. Remove logging of successful admin commands. --- src/game/g_admin.c | 4 ++-- 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 }, -- cgit