regonlymsg: do not clobber the work of other modules
This commit is contained in:
parent
dc5d1d012a
commit
90e99760a0
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue