diff options
| author | 2022-01-31 02:33:06 +0000 | |
|---|---|---|
| committer | 2022-01-31 12:01:39 +0000 | |
| commit | 6e7d449495fccb053f3cea8009b7c7c9b38a0a82 (patch) | |
| tree | 3cb46cfe75122affd9aa7d41174d2341dff8f0e5 /src/modules/m_dccallow.cpp | |
| parent | Make extension names case insensitive. (diff) | |
Refuse to set an extension on the wrong type of extensible.
Diffstat (limited to 'src/modules/m_dccallow.cpp')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 46415164d..bffa96872 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -118,6 +118,9 @@ public: void FromInternal(Extensible* container, const std::string& value) noexcept override { + if (container->extype != this->extype) + return; + LocalUser* user = IS_LOCAL(static_cast<User*>(container)); if (!user) return; |
