summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2011-02-14 23:30:24 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:00 +0000
commit124d66e9cba92dde7d6e149aa546c5198f833b43 (patch)
treeea0850807cdc327c3a6c3f6c85c1b9e5f502cad5 /src/game
parent9c5b613ed3fb5002db039ec1a9b0067311e20ce1 (diff)
* Remove excess newline from "banned player tried to connect" message
Diffstat (limited to 'src/game')
-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 badf49aa..007b13fc 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -874,12 +874,12 @@ qboolean G_admin_ban_check( gentity_t *ent, char *reason, int rlen )
Com_sprintf( warningMessage, sizeof( warningMessage ),
S_COLOR_YELLOW "Banned player %s" S_COLOR_YELLOW
- " tried to connect from %s (ban #%d)\n",
+ " tried to connect from %s (ban #%d)",
ent->client->pers.netname[ 0 ] ? ent->client->pers.netname :
ban->name,
ent->client->pers.ip.str,
i + 1 );
- trap_Print( warningMessage );
+ trap_Print( va( "%s\n", warningMessage ) );
// don't spam admins
if( ban->warnCount++ < 5 )
G_AdminMessage( NULL, warningMessage );