aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-08 23:34:37 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-08 23:34:37 +0200
commite01469148968c231c5c1189a1814ad02ec87e555 (patch)
tree98ffd10a7f27587a855fba42bd8e366b91134848 /FICS
parent4324dc4ac2fb7b7179856c6ae9a639190b3b69fd (diff)
Added variable 'interface'
Diffstat (limited to 'FICS')
-rw-r--r--FICS/variable.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/FICS/variable.c b/FICS/variable.c
index 2af9f59..9a20122 100644
--- a/FICS/variable.c
+++ b/FICS/variable.c
@@ -401,6 +401,19 @@ set_inc(int p, char *var, char *val)
}
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)
{
int v = -1;
@@ -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},