chm_regmsg: actually check channel mode (#271)

This commit is contained in:
Eric Mertens 2021-08-23 19:52:18 -07:00 committed by GitHub
parent 2ef034d111
commit 981a94c3c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,10 @@ chm_regmsg_process(void *data_)
if (data->approved)
return;
/* mode is unset, accept */
if (!(data->chptr->mode.mode & mode_regmsg))
return;
/* user is identified, accept */
if (!EmptyString(data->source_p->user->suser))
return;