X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_join.c;fp=ircd%2Fm_join.c;h=db04f6788ebf16ca4cfd6a954517ddb94ec7d21a;hb=c6d3f87c62b35eda2b51563991dfa56e8519ba72;hp=88681c75edcda1e428be9267f6aa212a015f104f;hpb=e229a8260773668fb317a6170d7bdb99be9a8a1f;p=ircu2.10.12-pk.git 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)) {