From 15a3cb484cb4c6f57f8e1f9490d4aa282c7f16b2 Mon Sep 17 00:00:00 2001 From: Alex Badea Date: Fri, 12 Apr 2002 00:19:52 +0000 Subject: [PATCH] Author: Alex Badea Log message: Don't propagate invites for local channels. (pullup from u2_10_11 branch) git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@729 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 6 ++++++ include/patchlevel.h | 2 +- ircd/m_invite.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2a9dda7..5ebf9aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-04-12 Alex Badea + + * ircd/m_invite.c: don't propagate invites for local channels + + * include/patchlevel.h (PATCHLEVEL): bump patchlevel + 2002-04-10 Joseph Bongaarts * ircd/ircd.c: The last fix broke autoconnects completely. diff --git a/include/patchlevel.h b/include/patchlevel.h index a92a7cc..72f5f2b 100644 --- a/include/patchlevel.h +++ b/include/patchlevel.h @@ -18,7 +18,7 @@ * $Id$ * */ -#define PATCHLEVEL "02" +#define PATCHLEVEL "03" #define RELEASE ".12.alpha." diff --git a/ircd/m_invite.c b/ircd/m_invite.c index 4134bce..7b0b493 100644 --- a/ircd/m_invite.c +++ b/ircd/m_invite.c @@ -195,7 +195,8 @@ int m_invite(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) if (MyConnect(acptr)) add_invite(acptr, chptr); - sendcmdto_one(sptr, CMD_INVITE, acptr, "%s :%H", cli_name(acptr), chptr); + if (!IsLocalChannel(chptr->chname)) + sendcmdto_one(sptr, CMD_INVITE, acptr, "%s :%H", cli_name(acptr), chptr); return 0; } -- 2.20.1