summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-03 12:38:32 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:07 +0000
commit8373b62e39599d7b27bf150735298863b19487cb (patch)
treeb7bb1f38f3dffd8a903abb4266f42d097bd4e0e7 /src/game/g_admin.c
parent9d1a4aec5a948c2d0c0fefc5eca1b33f663eb07b (diff)
* Require each client to have a unique, valid GUID
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c11
1 files changed, 2 insertions, 9 deletions
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"