From 52fceb1ec65dc3fe23e98cafd1c0460f775800b4 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 9 Jul 2024 01:06:22 +0200 Subject: Added 'interface' --- FICS/playerdb.c | 5 +++++ FICS/playerdb.h | 1 + 2 files changed, 6 insertions(+) diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 00c409c..d137de0 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -260,6 +260,11 @@ player_zero(int p) parray[p].w_stats.whenbest = 0; parray[p].w_stats.win = 0; + // Used to store the player's interface. + // For example: xboard 4.9.1 + (void) memset(&(parray[p].interface[0]), 0, + ARRAY_SIZE(parray[p].interface)); + return 0; } diff --git a/FICS/playerdb.h b/FICS/playerdb.h index fcd4879..403533e 100644 --- a/FICS/playerdb.h +++ b/FICS/playerdb.h @@ -102,6 +102,7 @@ typedef struct _player { */ List *lists; char busy[100]; + char interface[45]; // For example: 'xboard 4.9.1' char *identptr; char *last_file; char *login; -- cgit v1.2.3