Kill CLICAP_FLAGS_REQACK

This commit is contained in:
Ed Kellett 2020-10-19 12:27:55 +01:00 committed by Doug Freed
parent e8a8d7a440
commit 9f9e21dfbe
2 changed files with 0 additions and 7 deletions

View file

@ -51,7 +51,6 @@ extern struct CapabilityIndex *cli_capindex;
/* register client capabilities with this structure for 3.2 enhanced capability negotiation */
#define CLICAP_FLAGS_STICKY 0x001
#define CLICAP_FLAGS_REQACK 0x002
struct ClientCapability {
bool (*visible)(struct Client *); /* whether or not to display the capability. set to NULL or true return value = displayed */

View file

@ -351,12 +351,6 @@ cap_req(struct Client *source_p, const char *arg)
capadd |= (1 << cap->value);
}
/* XXX this probably should exclude REQACK'd caps from capadd/capdel, but keep old behaviour for now */
if(HasCapabilityFlag(cap, CLICAP_FLAGS_REQACK))
{
type = "~";
}
for (int attempts = 0; attempts < 2; attempts++) {
if (rb_snprintf_try_append(buf_list[i], max_list, "%s%s%s",
buf_list[i][0] == '\0' ? "" : " ", /* space between caps */