From 8373b62e39599d7b27bf150735298863b19487cb Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Sat, 3 Oct 2009 12:38:32 +0000 Subject: * Require each client to have a unique, valid GUID --- src/game/g_admin.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/game/g_admin.c') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index ab047b5f..43ca0400 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -681,8 +681,7 @@ static void admin_log( gentity_t *admin, char *cmd, int skiparg ) tens, sec, ( admin ) ? admin->s.clientNum : -1, - ( admin ) ? admin->client->pers.guid - : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", + admin->client->pers.guid, ( admin ) ? admin->client->pers.netname : "console", flags, cmd, @@ -698,8 +697,7 @@ static void admin_log( gentity_t *admin, char *cmd, int skiparg ) tens, sec, ( admin ) ? admin->s.clientNum : -1, - ( admin ) ? admin->client->pers.guid - : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", + admin->client->pers.guid, ( admin ) ? admin->client->pers.netname : "console", flags, cmd, @@ -1427,11 +1425,6 @@ qboolean G_admin_setlevel( gentity_t *ent, int skiparg ) return qfalse; } - if( !Q_stricmp( guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) ) - { - ADMP( va( "^3!setlevel: ^7%s does not have a valid GUID\n", adminname ) ); - return qfalse; - } if( ent && !admin_higher_guid( ent->client->pers.guid, guid ) ) { ADMP( "^3!setlevel: ^7sorry, but your intended victim has a higher" -- cgit