summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 369c1f4c4..b1aedde73 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -4087,14 +4087,13 @@ int InspIRCd(void)
if (current->registered == 7)
{
kill_link(current,"RecvQ exceeded");
- goto label;
}
else
{
add_zline(120,ServerName,"Flood from unregistered connection",current->ip);
apply_lines();
- goto label;
}
+ goto label;
}
// while there are complete lines to process...
while (current->BufferIsReady())
@@ -4102,9 +4101,17 @@ int InspIRCd(void)
floodlines++;
if ((floodlines > current->flood) && (current->flood != 0))
{
- log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
- WriteOpers("*** Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
- kill_link(current,"Excess flood");
+ if (current->registered == 7)
+ {
+ log(DEFAULT,"Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
+ WriteOpers("*** Excess flood from: %s!%s@%s",current->nick,current->ident,current->host);
+ kill_link(current,"Excess flood");
+ }
+ else
+ {
+ add_zline(120,ServerName,"Flood from unregistered connection",current->ip);
+ apply_lines();
+ }
goto label;
}
char sanitized[MAXBUF];