aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
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
parent7a2058625ccf0f8ae41e5b210e173e98f87b09b7 (diff)
Deleted com_channel()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/talkproc.c42
-rw-r--r--FICS/talkproc.h3
2 files changed, 1 insertions, 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();