server: Fix required capabilities check if there is more than one capability.
This commit is contained in:
parent
5fd2dd9556
commit
71eb2bb99b
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ mr_server(struct Client *client_p, struct Client *source_p, int parc, const char
|
||||||
/* check to ensure any "required" caps are set. --nenolod */
|
/* check to ensure any "required" caps are set. --nenolod */
|
||||||
/* XXX: show required CAPABs. */
|
/* XXX: show required CAPABs. */
|
||||||
required_mask = capability_index_get_required(serv_capindex);
|
required_mask = capability_index_get_required(serv_capindex);
|
||||||
if (required_mask && !(client_p->localClient->caps & required_mask))
|
if (!IsCapable(client_p, required_mask))
|
||||||
{
|
{
|
||||||
exit_client(client_p, client_p, client_p, "Missing required CAPABs");
|
exit_client(client_p, client_p, client_p, "Missing required CAPABs");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue