From a3053b6a5581d72efef3bd171c55ff07e4ed3a01 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 10 Dec 2023 15:00:29 +0100 Subject: Deleted disabled code --- FICS/talkproc.c | 61 --------------------------------------------------------- 1 file changed, 61 deletions(-) diff --git a/FICS/talkproc.c b/FICS/talkproc.c index 69e2c81..45d262d 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -629,67 +629,6 @@ PUBLIC int com_inchannel(int p, param_list param) } } -#if 0 /* if anyone can do inchannel NULL without n^3 computation - please do so*/ -PUBLIC int com_inchannel(int p, param_list param) -{ - int c1, c2; - int i, j, count = 0; - - if (param[0].type == TYPE_NULL) { /* List everyone on every channel */ - c1 = -1; - c2 = -1; - } else if (param[1].type == TYPE_NULL) { /* One parameter */ - c1 = param[0].val.integer; - if (c1 < 0) { - pprintf(p, "The lowest channel number is 0.\n"); - return COM_OK; - } - c2 = -1; - } else { /* Two parameters */ - c1 = param[0].val.integer; - c2 = param[1].val.integer; - if ((c1 < 0) || (c2 < 0)) { - pprintf(p, "The lowest channel number is 0.\n"); - return COM_OK; - } - pprintf(p, "Two parameter inchannel is not implemented.\n"); - return COM_OK; - } - if ((c1 >= MAX_CHANNELS) || (c2 >= MAX_CHANNELS)) { - pprintf(p, "The maximum channel number is %d.\n", MAX_CHANNELS - 1); - return COM_OK; - } - for (i = 0; i < MAX_CHANNELS; i++) { - if (numOn[i] && ((c1 < 0) || (i == c1))) { - /* First get rid of ghosts. */ - for (j=0; j < numOn[i]; j++) { - if (parray[channels[i][j]].status == PLAYER_PROMPT) - continue; - channels[i][j] = channels[i][--numOn[i]]; - j--; - } - pprintf(p, "Channel %d:", i); - for (j = 0; j < numOn[i]; j++) { - pprintf(p, " %s", parray[channels[i][j]].name); - if ((i==0 || i==1) && parray[channels[i][j]].adminLevel >= 10 - && parray[channels[i][j]].i_admin) - pprintf(p, "(*)"); - } - count++; - pprintf(p, "\n"); - } - } - if (!count) { - if (c1 < 0) - pprintf(p, "No channels in use.\n"); - else - pprintf(p, "Channel not in use.\n"); - } - return COM_OK; -} -#endif - PUBLIC int com_sendmessage(int p, param_list param) { int p1, connected = 1; -- cgit v1.2.3