summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-18 22:51:44 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:55 +0000
commitd1d5e8faf358302d490abe17f369c0366d5e29b2 (patch)
tree2f77b0f8d553a687beb3165c969abe60a223bb65 /src/game/g_client.c
parentc4c6f67a49e33d14e24d56d0082f153797cd30f8 (diff)
* (bug 4310) Rework admin.log
- Remove admin.log and fold its information into games.log because its information is rarely useful without the context that games.log brings - Don't show guid/flags in AdminCmd: log items. Show registered name instead. - Add an AdminAuth: log item that contains this info, occurring at connect, setlevel, and readconfig - Always attach an admin's registered name to bans so the correct people are complained about rather than aliases - General g_admin.c shrinking and refactoring
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index ca002506..03a63147 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1280,7 +1280,11 @@ char *ClientConnect( int clientNum, qboolean firstTime )
// don't do the "xxx connected" messages if they were caried over from previous level
if( firstTime )
- trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " connected\n\"", client->pers.netname ) );
+ trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " connected\n\"",
+ client->pers.netname ) );
+
+ if( client->pers.admin )
+ G_admin_authlog( ent );
// count current clients and rank for scoreboard
CalculateRanks( );