diff options
| author | 2022-04-17 11:02:42 +0100 | |
|---|---|---|
| committer | 2022-04-17 11:14:39 +0100 | |
| commit | 80e80132826569444e690a177f5bfc5f603fada1 (patch) | |
| tree | 497e86b783dc6beb1828a07c1ea99b8383b8ea10 /src/modules/m_inviteexception.cpp | |
| parent | Refactor CleanMask to cover more edge cases. (diff) | |
Remove ValidateParam and rename CanonicalizeParam.
There's basically no safe way to handle a malformed list mode
sent by a remote server without causing a desync. Its probably
for the best if we just only apply validation to locally added
list modes entries.
Diffstat (limited to 'src/modules/m_inviteexception.cpp')
| -rw-r--r-- | src/modules/m_inviteexception.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index 8db100230..b2f5c8afa 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -48,7 +48,7 @@ public: syntax = "<mask>"; } - bool CanonicalizeParam(LocalUser* user, Channel* channel, std::string& parameter) override + bool ValidateParam(LocalUser* user, Channel* channel, std::string& parameter) override { if (!extbanmgr || !extbanmgr->Canonicalize(parameter)) ModeParser::CleanMask(parameter); |
