summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-02-14 17:00:13 +0100
committerPaweł Redman <pawel.redman@gmail.com>2015-02-14 17:00:13 +0100
commit36c01fd8d8d708debb96136eec28b29c2a63fdbd (patch)
tree4256af64f5fe5048f6aa42b9b33eb145d60b1f9c /src/game/g_admin.c
parent69b93c3e2a94a71c31f1a7e8280fd99e19845538 (diff)
Fix console being unable to send PMs. Remove logging of successful admin commands.
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c4
1 files changed, 2 insertions, 2 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( );
}