]> jfr.im git - irc/freenode/solanum.git/commitdiff
callerid: actually the guard should be for source_p
authorAriadne Conill <redacted>
Sat, 27 Jun 2020 16:13:03 +0000 (16:13 +0000)
committerAriadne Conill <redacted>
Thu, 9 Jul 2020 22:06:33 +0000 (16:06 -0600)
modules/um_callerid.c

index bbe70d3ccae843f6a06d126f832772e9b4a68148..92c673b1a95052dca8e0fc82034eee920189aabf 100644 (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;
 
        /*