summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c6
1 files changed, 6 insertions, 0 deletions
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 ] ) )
{