From 7161853405320ed0ccbb61fbf53fb4691fbd0623 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Fri, 9 Oct 2009 03:03:37 +0000 Subject: * Disallow the name "console" to prevent confusion with dedicated server console messaging functions --- src/game/g_admin.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 8df377ea..832d3c45 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -270,6 +270,12 @@ qboolean G_admin_name_check( gentity_t *ent, char *name, char *err, int len ) if( !strcmp( name2, "unnamedplayer" ) ) return qtrue; + if( !strcmp( name2, "console" ) ) + { + Q_strncpyz( err, "The name 'console' is not allowed.", len ); + return qfalse; + } + G_DecolorString( name, testName, sizeof( testName ) ); if( isdigit( testName[ 0 ] ) ) { -- cgit