From eb1d4061bacddf6bc84213c3ca9b14a75fa038e0 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 10 Dec 2023 14:15:42 +0100 Subject: Deleted com_channel() --- FICS/talkproc.c | 42 ------------------------------------------ FICS/talkproc.h | 3 +-- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/FICS/talkproc.c b/FICS/talkproc.c index 26c193a..ac4533e 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -702,48 +702,6 @@ PUBLIC int com_uncensor(int p, param_list param) #endif -#if 0 /* now in lists.c */ -PUBLIC int com_channel(int p, param_list param) -{ - int i, err; - - if (param[0].type == TYPE_NULL) { /* Turn off all channels */ - for (i = 0; i < MAX_CHANNELS; i++) { - if (!channel_remove(i, p)) - pprintf(p, "Channel %d turned off.\n", i); - } - } else { - i = param[0].val.integer; - if ((i == 0) && (!on_channel(i, p)) && (parray[p].adminLevel == 0)) { - pprintf(p, "Only admins may join channel 0.\n"); - return COM_OK; - } - if (i < 0) { - pprintf(p, "The lowest channel number is 0.\n"); - return COM_OK; - } - if (i >= MAX_CHANNELS) { - pprintf(p, "The maximum channel number is %d.\n", MAX_CHANNELS - 1); - return COM_OK; - } - if (on_channel(i, p)) { - if (!channel_remove(i, p)) - pprintf(p, "Channel %d turned off.\n", i); - } else { - if (!(err = channel_add(i, p))) - pprintf(p, "Channel %d turned on.\n", i); - else { - if (err == 1) - pprintf(p, "Channel %d is already full.\n", i); - if (err == 3) - pprintf(p, "Maximum channel number exceeded.\n"); - } - } - } - return COM_OK; -} -#endif - PUBLIC int com_inchannel(int p, param_list param) { int p1,count = 0; diff --git a/FICS/talkproc.h b/FICS/talkproc.h index 7537bb3..a3f2166 100644 --- a/FICS/talkproc.h +++ b/FICS/talkproc.h @@ -20,7 +20,7 @@ /* Revision history: name yy/mm/dd Change hersco and Marsalis 95/07/24 Created - Markus Uhlin 23/12/10 Deleted com_query() + Markus Uhlin 23/12/10 Deleted declarations Markus Uhlin 23/12/10 Sorted the declarations */ @@ -32,7 +32,6 @@ extern int quota_time; extern int com_censor(); -extern int com_channel(); extern int com_clearmessages(); extern int com_cshout(); extern int com_inchannel(); -- cgit v1.2.3