aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/talkproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-10 14:46:25 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-10 14:46:25 +0100
commit339ebc42db00bc7358dd2c7b48096d0a1bfb9076 (patch)
tree89b7521921260cd110fb73fe484cb18ffce4b969 /FICS/talkproc.c
parent48dd45ada9e4f293c530bd3e041011be9cd342ee (diff)
Deleted disabled code
Diffstat (limited to 'FICS/talkproc.c')
-rw-r--r--FICS/talkproc.c84
1 files changed, 0 insertions, 84 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c
index 67086f5..69e2c81 100644
--- a/FICS/talkproc.c
+++ b/FICS/talkproc.c
@@ -946,87 +946,3 @@ PUBLIC int on_channel(int ch, int p)
return in_list(p, L_CHANNEL,tmp ); /* since needs ch converted to a string keep
hidden from view */
}
-
-#if 0
-
-void WhichList(int p, char *partial, char **Full)
-{
- int i, gotit = -1;
- int slen = strlen(partial);
- static char *MyList[] = {"notify", "censor", "channel", ""};
-
- for (i=0; MyList[i][0] != '\0'; i++) {
- if (strncmp(partial, MyList[i], slen))
- continue;
- if (gotit >= 0) {
- pprintf(p, "Ambiguous list name.\n");
- *Full = NULL;
- return;
- }
- gotit = i;
- }
- if (gotit >= 0)
- *Full = MyList[gotit];
- else **Full = '\0';
- return;
-}
-
-PUBLIC int com_plus(int p, param_list param)
-{
- char *list;
- int chan;
- parameter *Param1 = &param[1];
-
- WhichList (p, param[0].val.word, &list);
-
- if (list == NULL) return COM_OK;
-
- if (!strcmp(list, "notify"))
- return notorcen (p, Param1, &parray[p].num_notify, MAX_NOTIFY,
- parray[p].notifyList, "notify");
- if (!strcmp(list, "censor"))
- return notorcen (p, Param1, &parray[p].num_censor, MAX_NOTIFY,
- parray[p].censorList, "censor");
- if (!strcmp(list, "channel")) {
- chan = atoi(param[1].val.word);
- if (chan < 0) {
- }
-
- switch (channel_add(chan, p)) {
- case 0: pprintf(p, "Channel %d turned on.\n", chan); break;
- case 1: pprintf(p, "Channel %d is already full.\n", chan); break;
- case 2: pprintf(p, "You are already on channel %d.\n", chan); break;
- case 3: pprintf(p, "Maximum number of channels exceeded.\n"); break;
- }
- return COM_OK;
- }
- return com_addlist(p, param);
-}
-
-PUBLIC int com_minus(int p, param_list param)
-{
- char *list;
- int chan;
- parameter *Param1 = &param[1];
-
- WhichList (p, param[0].val.word, &list);
-
- if (list == NULL) return COM_OK;
-
- if (!strcmp(list, "notify"))
- return unnotorcen (p, Param1, &parray[p].num_notify, MAX_NOTIFY,
- parray[p].notifyList, "notify");
- if (!strcmp(list, "censor"))
- return unnotorcen (p, Param1, &parray[p].num_censor, MAX_CENSOR,
- parray[p].censorList, "censor");
- if (!strcmp(list, "channel")) {
- chan = atoi(param[1].val.word);
- if (on_channel(chan, p))
- channel_remove(chan, p);
- else
- pprintf(p, "You are not on channel %d", chan);
- return COM_OK;
- }
- return com_sublist(p, param);
-}
-#endif