cap: chase ircv3.2 interpretation of sticky/ack-required caps (basically dropping support other than serverside enforcement of stickyness)

change request @ ircv3/ircv3-specifications#122
This commit is contained in:
William Pitcock 2015-03-10 08:20:03 -05:00
parent 27403553b5
commit eafae32681

View file

@ -244,32 +244,6 @@ clicap_generate(struct Client *source_p, const char *subcmd, int flags, int clea
{ {
*p++ = '-'; *p++ = '-';
buflen++; buflen++;
/* needs a client ack */
if(clicap_list[i].cap_cli &&
IsCapable(source_p, clicap_list[i].cap_cli))
{
*p++ = '~';
buflen++;
}
}
else
{
if(clicap_list[i].flags & CLICAP_FLAGS_STICKY)
{
*p++ = '=';
buflen++;
}
/* if we're doing an LS, then we only send this if
* they havent ack'd
*/
if(clicap_list[i].cap_cli &&
(!flags || !IsCapable(source_p, clicap_list[i].cap_cli)))
{
*p++ = '~';
buflen++;
}
} }
curlen = rb_sprintf(p, "%s ", clicap_list[i].name); curlen = rb_sprintf(p, "%s ", clicap_list[i].name);