diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 14:34:48 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 14:34:48 +0100 |
commit | 8ed5d63aff400c893c594d8f06e2d3a840f33e63 (patch) | |
tree | 567c34044e895dc07e1ef19554ce86a6d6042c0a | |
parent | 4f3f92cd6a8eae13f4053633dfc9b393cf78ffb2 (diff) |
Deleted disabled code
-rw-r--r-- | FICS/talkproc.c | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c index ac4533e..67086f5 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -587,121 +587,6 @@ PUBLIC int com_say(int p, param_list param) return tell(p, parray[p].opponent, param[0].val.string, TELL_SAY, 0); } -#if 0 -PRIVATE int notorcen(int p, param_list param, int *num, int max, - char **list, char *listname) -{ - int i, p1, connected; - - if (param[0].type != TYPE_WORD) { - if (!*num) { - pprintf(p, "Your %s list is empty.\n", listname); - return COM_OK; - } else - pprintf(p, "-- Your %s list contains %d names: --", listname, *num); - /* New code to print names in columns */ - { - multicol *m = multicol_start(MAX_NOTIFY + 1); - for (i = 0; i < *num; i++) - multicol_store_sorted(m, list[i]); - multicol_pprint(m, p, 78, 2); - multicol_end(m); - } - return COM_OK; - } - if (*num >= max) { - pprintf(p, "Sorry, your %s list is already full.\n", listname); - return COM_OK; - } - if (!FindPlayer(p, param[0].val.word, &p1, &connected)) - return COM_OK; - - for (i = 0; i < *num; i++) { - if (!strcasecmp(list[i], param[0].val.word)) { - pprintf(p, "Your %s list already includes %s.\n", - listname, parray[p1].name); - if (!connected) - player_remove(p1); - return COM_OK; - } - } - if (p1 == p) { - pprintf(p, "You can't %s yourself.\n", listname); - return COM_OK; - } - list[*num] = xstrdup(parray[p1].name); - ++(*num); - pprintf(p, "%s is now on your %s list.\n", parray[p1].name, listname); - if (!connected) - player_remove(p1); - return COM_OK; -} - -PRIVATE int unnotorcen(int p, param_list param, int *num, int max, - char **list, char *listname) -{ - char *pname = NULL; - int i, j; - int unc = 0; - - if (param[0].type == TYPE_WORD) { - pname = param[0].val.word; - } - for (i = 0; i < *num; i++) { - if (!pname || !strcasecmp(pname, list[i])) { - pprintf(p, "%s is removed from your %s list.\n", - list[i], listname); - rfree(list[i]); - list[i] = NULL; - unc++; - } - } - if (unc) { - i = 0; - j = 0; - while (j < *num) { - if (list[j] != NULL) { - list[i++] = list[j]; - } - j++; - } - while (i < j) { - list[i++] = NULL; - } - (*num) -= unc; - } else { - pprintf(p, "No one was removed from your %s list.\n", listname); - } - return COM_OK; -} - - -PUBLIC int com_notify(int p, param_list param) -{ - return notorcen(p, param, &parray[p].num_notify, MAX_NOTIFY, - parray[p].notifyList, "notify"); -} - -PUBLIC int com_censor(int p, param_list param) -{ - return notorcen(p, param, &parray[p].num_censor, MAX_CENSOR, - parray[p].censorList, "censor"); -} - -PUBLIC int com_unnotify(int p, param_list param) -{ - return unnotorcen(p, param, &parray[p].num_notify, MAX_NOTIFY, - parray[p].notifyList, "notify"); -} - -PUBLIC int com_uncensor(int p, param_list param) -{ - return unnotorcen(p, param, &parray[p].num_censor, MAX_CENSOR, - parray[p].censorList, "censor"); -} - -#endif - PUBLIC int com_inchannel(int p, param_list param) { int p1,count = 0; |