aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/talkproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-10 14:15:42 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-10 14:15:42 +0100
commiteb1d4061bacddf6bc84213c3ca9b14a75fa038e0 (patch)
tree566bea67a8fa1a42f88a824e72ea9b67902b39e1 /FICS/talkproc.c
parent7a2058625ccf0f8ae41e5b210e173e98f87b09b7 (diff)
Deleted com_channel()
Diffstat (limited to 'FICS/talkproc.c')
-rw-r--r--FICS/talkproc.c42
1 files changed, 0 insertions, 42 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;