From c07e1f96e162b816047c478a80fcb93ee8c69918 Mon Sep 17 00:00:00 2001 From: codemastr Date: Sat, 17 Jan 2004 20:13:48 +0000 Subject: [PATCH] Renamed FAKE_LAG_FOR_LOCOPS and made chanops override chmode +V --- Changes | 3 +++ include/config.h | 2 +- src/channel.c | 2 +- src/parse.c | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index c3a6eb8cf..e8c146d38 100644 --- a/Changes +++ b/Changes @@ -2728,3 +2728,6 @@ seen. gmtime warning still there Requested by AngryWolf (#0001488) - Added a patch by XeRXeS to log usage of some potentially abusive commands (#0001397) +- Renamed "FAKE_LAG_FOR_LOCOPS" to "NO_FAKE_LAG_FOR_LOCOPS" since that's what it did + anyway, requested by Greg (#0001453) +- Made it so chan ops can invite in a +V channel. Requested by AI (#0001478) diff --git a/include/config.h b/include/config.h index 4802ce426..2c764f7a6 100644 --- a/include/config.h +++ b/include/config.h @@ -170,7 +170,7 @@ /* * Enables locops to override the RFC1459 flood control too */ -#undef FAKE_LAG_FOR_LOCOPS +#undef NO_FAKE_LAG_FOR_LOCOPS /* * HOSTILENAME - Define this if you want the hostile username patch included, diff --git a/src/channel.c b/src/channel.c index 767486ed6..abf49096d 100644 --- a/src/channel.c +++ b/src/channel.c @@ -5533,7 +5533,7 @@ CMD_FUNC(m_knock) return 0; } - if (chptr->mode.mode & MODE_NOINVITE) + if ((chptr->mode.mode & MODE_NOINVITE) && !is_chan_op(sptr, chptr)) { sendto_one(sptr, err_str(ERR_CANNOTKNOCK), me.name, diff --git a/src/parse.c b/src/parse.c index 3c38693f4..02d61e7e5 100644 --- a/src/parse.c +++ b/src/parse.c @@ -177,7 +177,7 @@ void ban_flooder(aClient *cptr) inline void parse_addlag(aClient *cptr, int cmdbytes) { if (!IsServer(cptr) && -#ifdef FAKE_LAG_FOR_LOCOPS +#ifdef NO_FAKE_LAG_FOR_LOCOPS !IsAnOper(cptr)) #else !IsOper(cptr))