aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dccallow.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-31 02:33:06 +0000
committerGravatar Sadie Powell2022-01-31 12:01:39 +0000
commit6e7d449495fccb053f3cea8009b7c7c9b38a0a82 (patch)
tree3cb46cfe75122affd9aa7d41174d2341dff8f0e5 /src/modules/m_dccallow.cpp
parentMake 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.cpp3
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;