aboutsummaryrefslogtreecommitdiff
path: root/modules/dccallow.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-02-12 13:17:53 +0000
committerGravatar Sadie Powell2026-02-12 13:17:53 +0000
commit54eae2619c6227c78d624e09a05d41ca51a26f77 (patch)
tree522b4a5f24891c3357020685b6023766cd658f1f /modules/dccallow.cpp
parentAdd support for swhois entries that only servers can unset. (diff)
Remove InValidMask as it only has one unnecessary use.
Diffstat (limited to 'modules/dccallow.cpp')
-rw-r--r--modules/dccallow.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/dccallow.cpp b/modules/dccallow.cpp
index dd71f4a1d..71626bef4 100644
--- a/modules/dccallow.cpp
+++ b/modules/dccallow.cpp
@@ -292,7 +292,6 @@ public:
}
}
- std::string mask = target->GetMask();
unsigned long length;
if (parameters.size() < 2)
{
@@ -312,12 +311,7 @@ public:
}
}
- if (!InspIRCd::IsValidMask(mask))
- {
- return CmdResult::FAILURE;
- }
-
- dl->emplace_back(target->nick, mask, ServerInstance->Time(), length);
+ dl->emplace_back(target->nick, target->GetMask(), ServerInstance->Time(), length);
if (length > 0)
{