0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

m_server: make sure required_caps is non-zero.

This commit is contained in:
William Pitcock 2012-02-04 04:39:39 -06:00
parent 54bec06e97
commit 806402515b

View file

@ -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 (!(client_p->localClient->caps & required_mask)) if (required_mask && !(client_p->localClient->caps & required_mask))
{ {
exit_client(client_p, client_p, client_p, "Missing required CAPABs"); exit_client(client_p, client_p, client_p, "Missing required CAPABs");