From 4abf8eb2e6066c1c1456f5978cd9a613992a468e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 27 Jun 2020 16:13:03 +0000 Subject: [PATCH] callerid: actually the guard should be for source_p --- modules/um_callerid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/um_callerid.c b/modules/um_callerid.c index bbe70d3c..92c673b1 100644 --- a/modules/um_callerid.c +++ b/modules/um_callerid.c @@ -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; /*