diff --git a/modules/um_regonlymsg.c b/modules/um_regonlymsg.c index 27d4653f..79ca4cd6 100644 --- a/modules/um_regonlymsg.c +++ b/modules/um_regonlymsg.c @@ -91,6 +91,9 @@ h_can_invite(void *vdata) struct Client *source_p = data->client; struct Client *target_p = data->target; + if (data->approved) + return; + if (allow_message(source_p, target_p)) return; @@ -107,6 +110,9 @@ h_hdl_privmsg_user(void *vdata) struct Client *source_p = data->source_p; struct Client *target_p = data->target_p; + if (data->approved) + return; + if (allow_message(source_p, target_p)) return;