From c6d3f87c62b35eda2b51563991dfa56e8519ba72 Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 20 Oct 2011 21:04:14 +0200 Subject: [PATCH] don't forward users if they are already in the target channel (mode +F) --- ircd/m_join.c | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- 2.20.1