mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 05:23:13 +02:00
Renamed FAKE_LAG_FOR_LOCOPS and made chanops override chmode +V
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user