1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 15:03:13 +02:00

- Made it so chanmode +f flood detection doesn't apply to u-lined servers. This was

already indirectly the case because services don't support the EOS command, but
  now some (homemade) services do :p. Reported by Troco (#0001337).
This commit is contained in:
Bram Matthys
2003-11-04 00:27:31 +00:00
parent 448ad3839a
commit c3dd8d08d5
3 changed files with 8 additions and 4 deletions
+3
View File
@@ -2554,3 +2554,6 @@ seen. gmtime warning still there
- Added insane OperOverride system for joining +z channels (#0001189).
This seems better than just allowing the insecure oper trough +z.
- Fixed a UMODE2 bug.
- Made it so chanmode +f flood detection doesn't apply to u-lined servers. This was
already indirectly the case because services don't support the EOS command, but
now some (homemade) services do :p. Reported by Troco (#0001337).
+4 -3
View File
@@ -3792,7 +3792,7 @@ CMD_FUNC(do_join)
* from all servers.
*/
if (chptr->mode.floodprot && (MyClient(sptr) || sptr->srvptr->serv->flags.synced) &&
do_chanflood(chptr->mode.floodprot, FLD_JOIN) && MyClient(sptr))
!IsULine(sptr) && do_chanflood(chptr->mode.floodprot, FLD_JOIN) && MyClient(sptr))
{
do_chanflood_action(chptr, FLD_JOIN, "join");
}
@@ -5345,7 +5345,8 @@ CMD_FUNC(m_knock)
sptr->name, chptr->chname);
#ifdef NEWCHFLOODPROT
if (chptr->mode.floodprot && do_chanflood(chptr->mode.floodprot, FLD_KNOCK) && MyClient(sptr))
if (chptr->mode.floodprot && !IsULine(sptr) &&
do_chanflood(chptr->mode.floodprot, FLD_KNOCK) && MyClient(sptr))
do_chanflood_action(chptr, FLD_KNOCK, "knock");
#endif
return 0;
@@ -5752,7 +5753,7 @@ CMD_FUNC(m_sjoin)
} else
sendto_channel_butserv(chptr, acptr, ":%s JOIN :%s", nick, chptr->chname);
#ifdef NEWCHFLOODPROT
if (chptr->mode.floodprot && sptr->serv->flags.synced)
if (chptr->mode.floodprot && sptr->serv->flags.synced && !IsULine(sptr))
do_chanflood(chptr->mode.floodprot, FLD_JOIN);
#endif
}
+1 -1
View File
@@ -1821,7 +1821,7 @@ CMD_FUNC(m_nick)
hash_check_watch(sptr, RPL_LOGON);
#ifdef NEWCHFLOODPROT
if (sptr->user && !newusr)
if (sptr->user && !newusr && !IsULine(sptr))
{
for (mp = sptr->user->channel; mp; mp = mp->next)
{