From 5403aab5d3dc626b9471e5e3d21a9ac66d629faa Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 3 Jan 2024 01:46:14 +0100 Subject: Reformatted com_servers() and deleted disabled code --- FICS/comproc.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'FICS/comproc.c') diff --git a/FICS/comproc.c b/FICS/comproc.c index 0738721..d3fc981 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -1439,20 +1439,13 @@ PUBLIC int com_unalias(int p, param_list param) return COM_OK; } -PUBLIC int com_servers(int p, param_list param) +PUBLIC int +com_servers(int p, param_list param) { -/* - int i; - - ASSERT(param[0].type == TYPE_NULL); - if (numServers == 0) { - */ pprintf(p, "There are no other servers known to this server.\n"); - return COM_OK; + pprintf(p, "There are no other servers known to this server.\n"); + (void) param; + return COM_OK; } - /* pprintf(p, "There are %d known servers.\n", numServers); pprintf(p, "(Not - all of these may be active)\n"); pprintf(p, "%-30s%-7s\n", "HOST", - "PORT"); for (i = 0; i < numServers; i++) pprintf(p, "%-30s%-7d\n", - serverNames[i], serverPorts[i]); return COM_OK; } */ PUBLIC int com_index(int p, param_list param) -- cgit v1.2.3