-static bool
-has_common_channel(struct Client *source_p, struct Client *target_p)
-{
- rb_dlink_node *ptr;
-
- RB_DLINK_FOREACH(ptr, source_p->user->channel.head)
- {
- struct membership *msptr = ptr->data;
- if (IsMember(target_p, msptr->chptr))
- return msptr->chptr;
- }
-
- return NULL;
-}
-