callerid: actually the guard should be for source_p

This commit is contained in:
Ariadne Conill 2020-06-27 16:13:03 +00:00
parent 4841ad6197
commit 4abf8eb2e6
1 changed files with 2 additions and 2 deletions

View File

@ -154,8 +154,8 @@ 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))
/* only do this on source_p's server */
if (!MyClient(source_p))
return true;
/*