regonlymsg: do not clobber the work of other modules

This commit is contained in:
Ariadne Conill 2020-06-26 19:03:25 +00:00
parent dc5d1d012a
commit 90e99760a0

View file

@ -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;