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)
|
if (data->approved)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* mode is unset, accept */
|
||||||
|
if (!(data->chptr->mode.mode & mode_regmsg))
|
||||||
|
return;
|
||||||
|
|
||||||
/* user is identified, accept */
|
/* user is identified, accept */
|
||||||
if (!EmptyString(data->source_p->user->suser))
|
if (!EmptyString(data->source_p->user->suser))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue