From e01469148968c231c5c1189a1814ad02ec87e555 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 8 Jul 2024 23:34:37 +0200 Subject: Added variable 'interface' --- FICS/variable.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/FICS/variable.c b/FICS/variable.c index 2af9f59..9a20122 100644 --- a/FICS/variable.c +++ b/FICS/variable.c @@ -400,6 +400,19 @@ set_inc(int p, char *var, char *val) return VAR_OK; } +PRIVATE int +set_interface(int p, char *var, char *val) +{ +// int v = -1; + + if (!val) + return VAR_BADVAL; + +// parray[p].xxx = v; + pprintf(p, "Interface set to %s.\n", val); + return VAR_OK; +} + PRIVATE int set_height(int p, char *var, char *val) { @@ -831,6 +844,7 @@ PUBLIC var_list variables[] = { {"i_game", set_ginform}, {"i_login", set_pinform}, {"inc", set_inc}, + {"interface", set_interface}, {"jprivate", set_jprivate}, {"kibitz", set_kibitz}, {"kiblevel", set_kiblevel}, -- cgit v1.2.3