diff options
author | M. Kristall <mkpdev@gmail.com> | 2010-06-08 22:29:43 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:38 +0000 |
commit | ea89f238e56b20f374d98be21c1ef420f251c960 (patch) | |
tree | c6e8af154d364b8c2bfcc875727961e6cc85e201 /src/game | |
parent | dacc0de155aafb3da66d855c4a6d4a20ed1d0d6d (diff) |
* (bug 4656) Make sure there is always a message for new bans
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_admin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index e6b856ee..530a1dd8 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1602,6 +1602,13 @@ qboolean G_admin_ban( gentity_t *ent ) G_admin_duration( ( seconds ) ? seconds : -1, duration, sizeof( duration ) ); + AP( va( "print \"^3ban:^7 %s^7 has been banned by %s^7 " + "duration: %s, reason: %s\n\"", + match->name[ match->nameChanges % MAX_NAMELOG_NAMES ], + ( ent ) ? ent->client->pers.netname : "console", + duration, + ( *reason ) ? reason : "banned by admin" ) ); + if( ipmatch ) { admin_create_ban( ent, |