From 1bbff988b943931f1357e95f1c7c4c2c9bd6e0b4 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 13 Jul 2024 14:01:29 +0200 Subject: Added code --- FICS/iset.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'FICS') diff --git a/FICS/iset.cpp b/FICS/iset.cpp index da687ab..470eddf 100644 --- a/FICS/iset.cpp +++ b/FICS/iset.cpp @@ -2,11 +2,19 @@ #include "common.h" #include "iset.h" +#include "utils.h" PUBLIC int com_iset(int p, param_list param) { - (void) p; - (void) param; + if (param[0].type != TYPE_WORD || + param[1].type != TYPE_WORD) { + pprintf(p, "%s: bad parameters\n", __func__); + return COM_BADPARAMETERS; + } + + pprintf(p, "%s: %s %s\n", __func__, + param[0].val.word, + param[1].val.word); return COM_OK; } -- cgit v1.2.3