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;
return;
sendto_one_numeric(data->source_p, ERR_MSGNEEDREGGEDNICK, form_str(ERR_MSGNEEDREGGEDNICK),
- data->source_p->name, data->chptr->chname);
+ data->chptr->chname);
data->approved = ERR_MSGNEEDREGGEDNICK;
}