From 8983cde1c4cab47a610c20325ec7a3025efaf31e Mon Sep 17 00:00:00 2001
From: Markus Uhlin <markus@nifty-networks.net>
Date: Sun, 24 Nov 2024 13:30:51 +0100
Subject: Added command 'sought'

---
 FICS/sought.cpp | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 FICS/sought.cpp

(limited to 'FICS/sought.cpp')

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;
+}
-- 
cgit v1.2.3