diff options
author | Peter Powell <petpow@saberuk.com> | 2017-04-27 02:56:59 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-04-27 02:56:59 +0100 |
commit | fefb6235cd8398408f92f93b9009718b6bed4cd7 (patch) | |
tree | 0a2d0c904f538086b9d4a4420d038fdfedd175bc /src | |
parent | 78b691e113e7e48fca0eb918591a17437fa0b96d (diff) |
Penalise clients that use WEBIRC incorrectly.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_cgiirc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index d26c0bca1..09f6a4659 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -85,6 +85,7 @@ class CommandWebirc : public Command irc::sockets::sockaddrs ipaddr; if (!irc::sockets::aptosa(parameters[3], 0, ipaddr)) { + IS_LOCAL(user)->CommandFloodPenalty += 5000; ServerInstance->SNO->WriteGlobalSno('a', "Connecting user %s tried to use WEBIRC but gave an invalid IP address.", user->GetFullRealHost().c_str()); return CMD_FAILURE; } @@ -116,6 +117,7 @@ class CommandWebirc : public Command } } + IS_LOCAL(user)->CommandFloodPenalty += 5000; ServerInstance->SNO->WriteGlobalSno('a', "Connecting user %s tried to use WEBIRC, but didn't match any configured webirc blocks.", user->GetFullRealHost().c_str()); return CMD_FAILURE; } |