callerid: only check the target's accept list on their own local server

This commit is contained in:
Ariadne Conill 2020-06-27 16:10:29 +00:00
parent 3ed61fba8c
commit 4841ad6197

View file

@ -154,6 +154,10 @@ send_callerid_notice(enum message_type msgtype, struct Client *source_p, struct
static bool
add_callerid_accept_for_source(enum message_type msgtype, struct Client *source_p, struct Client *target_p)
{
/* only do this on target_p's server */
if (!MyClient(target_p))
return true;
/*
* XXX: Controversial? Allow target users to send replies
* through a +g. Rationale is that people can presently use +g