Skip to content

Commit

Permalink
7 #301
Browse files Browse the repository at this point in the history
This sv code can be just left commented out but whatever.
Use authkey instead of rtcwkey.
  • Loading branch information
wolf6542 committed May 2, 2021
1 parent 48af2dd commit ecda5d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ void SV_DirectConnect( netadr_t from ) {
int startIndex;
char* denied;
int count;
char guid[GUID_LEN];
//char guid[GUID_LEN];
char* guid;
char* ip;
char restricted_cvars[BIG_INFO_STRING];

Expand Down Expand Up @@ -545,8 +546,11 @@ void SV_DirectConnect( netadr_t from ) {
newcl->netchan_end_queue = &newcl->netchan_start_queue;

// Save guid so game code can get it.
//Q_strncpyz(newcl->guid, guid, sizeof(newcl->guid));
//Info_SetValueForKey(userinfo, "cl_guid", guid);

guid = Info_ValueForKey(userinfo, "cl_guid");
Q_strncpyz(newcl->guid, guid, sizeof(newcl->guid));
Info_SetValueForKey(userinfo, "cl_guid", guid);

// save the userinfo
Q_strncpyz( newcl->userinfo, userinfo, sizeof( newcl->userinfo ) );
Expand Down

0 comments on commit ecda5d8

Please sign in to comment.