aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-13 14:01:29 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-13 14:01:29 +0200
commit1bbff988b943931f1357e95f1c7c4c2c9bd6e0b4 (patch)
tree20456aeec190da9b11ffe0635f37c24e81a71af4
parent634e1c2b1370d4fffd4e6503e4cd903f0521475e (diff)
Added code
-rw-r--r--FICS/iset.cpp12
1 files changed, 10 insertions, 2 deletions
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;
}