chm_regmsg: actually check channel mode (#271)
This commit is contained in:
parent
2ef034d111
commit
981a94c3c9
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue