#! /bin/sh /usr/share/dpatch/dpatch-run ## 19_can_flood.dpatch by Denis Sacchet ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Correct bug which not verify correctly the can_flood flag @DPATCH@ --- ircd-hybrid.orig/modules/core/m_message.c 2008-11-20 14:55:25.000000000 +0100 +++ ircd-hybrid/modules/core/m_message.c 2008-11-20 14:55:07.000000000 +0100 @@ -692,7 +692,7 @@ int delta; if (GlobalSetOptions.floodcount && MyConnect(target_p) - && IsClient(source_p) && !IsConfCanFlood(source_p)) + && IsClient(source_p) && !IsCanFlood(source_p)) { if ((target_p->localClient->first_received_message_time + 1) < CurrentTime) @@ -750,7 +750,7 @@ { int delta; - if (GlobalSetOptions.floodcount && !IsConfCanFlood(source_p)) + if (GlobalSetOptions.floodcount && !IsCanFlood(source_p)) { if ((chptr->first_received_message_time + 1) < CurrentTime) {