mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
m_server: make sure required_caps is non-zero.
This commit is contained in:
parent
54bec06e97
commit
806402515b
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 */
|
||||
/* XXX: show required CAPABs. */
|
||||
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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue