aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.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 /src/helperfuncs.cpp
parentAdd support for swhois entries that only servers can unset. (diff)
Remove InValidMask as it only has one unnecessary use.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index f5ea085c8..51cef7604 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -36,41 +36,6 @@
#include "utility/string.h"
#include "xline.h"
-bool InspIRCd::IsValidMask(const std::string& mask)
-{
- const char* dest = mask.c_str();
- int exclamation = 0;
- int atsign = 0;
-
- for (const char* i = dest; *i; i++)
- {
- /* out of range character, bad mask */
- if (*i < 32 || *i > 126)
- {
- return false;
- }
-
- switch (*i)
- {
- case '!':
- exclamation++;
- break;
- case '@':
- atsign++;
- break;
- }
- }
-
- /* valid masks only have 1 ! and @ */
- if (exclamation != 1 || atsign != 1)
- return false;
-
- if (mask.length() > ServerInstance->Config->Limits.GetMaxMask())
- return false;
-
- return true;
-}
-
void InspIRCd::StripColor(std::string& line)
{
for (size_t idx = 0; idx < line.length(); )