From: pk910 Date: Thu, 20 Oct 2011 19:04:14 +0000 (+0200) Subject: don't forward users if they are already in the target channel (mode +F) X-Git-Tag: WGN5~3 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=c6d3f87c62b35eda2b51563991dfa56e8519ba72;hp=e229a8260773668fb317a6170d7bdb99be9a8a1f;p=ircu2.10.12-pk.git don't forward users if they are already in the target channel (mode +F) --- diff --git a/ircd/m_join.c b/ircd/m_join.c index 88681c7..db04f67 100644 --- a/ircd/m_join.c +++ b/ircd/m_join.c @@ -287,6 +287,8 @@ int m_join(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) do_names(sptr, chptrb, NAMES_ALL|NAMES_EON); } } else { + if(find_member_link(chptrb, sptr)) + continue; //we have already joined this channel //first of all check if we may even join this channel int err2 = 0; if (chptrb->users == 0 && !chptrb->mode.apass[0] && !(chptrb->mode.mode & MODE_PERSIST)) {