diff options
-rw-r--r-- | src/game/g_admin.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index b35971e..ab507a9 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -6116,11 +6116,17 @@ qboolean G_admin_register(gentity_t *ent, int skiparg ){ return qfalse; } + if( !Q_stricmp( Q_CleanStr( ent->client->pers.netname ), "UnnamedPlayer" ) ) + { + ADMP( va( "^3!register:^7 You cannot register 'UnnamedPlayer'.\n" ) ); + return qfalse; + } + if( g_newbieNumbering.integer && g_newbieNamePrefix.string[ 0 ] && !Q_stricmpn ( ent->client->pers.netname, g_newbieNamePrefix.string, strlen(g_newbieNamePrefix.string ) ) ) { - ADMP( va( "^3!register: ^7 You cannot register names that begin with '%s^7'.\n", + ADMP( va( "^3!register:^7 You cannot register names that begin with '%s^7'.\n", g_newbieNamePrefix.string ) ); return qfalse; } |