callerid: don't clobber other modules

This commit is contained in:
Ariadne Conill 2020-06-26 13:05:17 -06:00
parent 921b508b1b
commit 6558648dc3

View file

@ -154,6 +154,9 @@ h_can_invite(void *vdata)
struct Client *source_p = data->client;
struct Client *target_p = data->target;
if (data->approved)
return;
if (!add_callerid_accept_for_source(MESSAGE_TYPE_PRIVMSG, source_p, target_p))
{
data->approved = ERR_TARGUMODEG;
@ -176,6 +179,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 (!add_callerid_accept_for_source(msgtype, source_p, target_p))
{
data->approved = ERR_TARGUMODEG;