Permalink
Browse files

server: Fix required capabilities check if there is more than one cap…

…ability.
  • Loading branch information...
1 parent 5fd2dd9 commit 71eb2bb99b0cbbe09601c982e72ab2b86d5ecca1 @jillest jillest committed Dec 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/core/m_server.c
View
2 modules/core/m_server.c
@@ -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 */
/* XXX: show required CAPABs. */
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");

0 comments on commit 71eb2bb

Please sign in to comment.