aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/sought.cpp
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-24 13:30:51 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-24 13:30:51 +0100
commit8983cde1c4cab47a610c20325ec7a3025efaf31e (patch)
treec019b3bc93cbb865dc88faea93ac4aa75740f508 /FICS/sought.cpp
parent452ea290d35f7f264d8636e738cd9c9e9437a916 (diff)
Added command 'sought'
Diffstat (limited to 'FICS/sought.cpp')
-rw-r--r--FICS/sought.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/FICS/sought.cpp b/FICS/sought.cpp
new file mode 100644
index 0000000..b4dd282
--- /dev/null
+++ b/FICS/sought.cpp
@@ -0,0 +1,41 @@
+// SPDX-FileCopyrightText: 2024 Markus Uhlin <maxxe@rpblc.net>
+// SPDX-License-Identifier: ISC
+
+#include "stdinclude.h"
+#include "common.h"
+
+#include "sought.h"
+
+/*
+ * Usage: sought [all]
+ *
+ * The "sought" command can be used in two ways: (a) typing "sought
+ * all" will display all current ads including your own; (b) typing
+ * "sought" alone will display only those current ads for which you
+ * are eligible based on any formula you might have (default). An
+ * example output is as follows:
+ *
+ * 0 1900 Hawk blitz 5 0 rated 1800-2000 f
+ * 1 1700 Friar wild7 2 12 unrated [white] 0-9999
+ * 4 1500 loon standard 5 0 unrated 0-9999 m
+ *
+ * The various columns have this information:
+ *
+ * Ad index number
+ * Player's rating
+ * Player's handle
+ * Type of chess match
+ * Time at start
+ * Increment per move
+ * Rated/unrated
+ * Color (if specified)
+ * Rating range
+ * Auto start/manual start and whether formula will be checked
+ */
+PUBLIC int
+com_sought(int p, param_list param)
+{
+ UNUSED_PARAM(p);
+ UNUSED_PARAM(param);
+ return COM_OK;
+}