]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
callerid: has_common_channels(): fix return value
authorAriadne Conill <redacted>
Sat, 27 Jun 2020 16:01:58 +0000 (16:01 +0000)
committerAriadne Conill <redacted>
Thu, 9 Jul 2020 22:06:33 +0000 (16:06 -0600)
modules/um_callerid.c

index d63476d4729a9632a56a56cd5ac24e0018262707..08f90305ccc3e9618b71c2646391ebbf97b9c3ec 100644 (file)
@@ -95,10 +95,10 @@ has_common_channel(struct Client *source_p, struct Client *target_p)
        {
                struct membership *msptr = ptr->data;
                if (IsMember(target_p, msptr->chptr))
-                       return msptr->chptr;
+                       return true;
        }
 
-       return NULL;
+       return false;
 }
 
 static bool