callerid: don't clobber other modules
This commit is contained in:
parent
921b508b1b
commit
6558648dc3
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue