diff options
author | Adam <Adam@anope.org> | 2017-10-08 14:22:20 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-10-08 14:22:20 -0400 |
commit | eb1976d11ea56bfac045c0eb92e7daae8a688c28 (patch) | |
tree | e5ef463bec76d0a0cc36c748030ba47b252c241f /src/xline.cpp | |
parent | 2cb0d9057bf1968d36168a76e25f4cf4d3b33fbf (diff) |
Fix caching xline mask
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index d0e058f09..baaca5976 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -29,7 +29,7 @@ /* List of XLine managers we check users against in XLineManager::CheckAll */ std::vector<XLineManager *> XLineManager::XLineManagers; -void XLine::Recache() +void XLine::Recache(const Anope::string &xlmask) { delete regex; regex = nullptr; @@ -37,7 +37,6 @@ void XLine::Recache() delete c; c = nullptr; - Anope::string xlmask = GetMask(); if (xlmask.length() >= 2 && xlmask[0] == '/' && xlmask[xlmask.length() - 1] == '/' && Config->regex_flags) { Anope::string stripped_mask = xlmask.substr(1, xlmask.length() - 2); @@ -223,7 +222,7 @@ XLineManager *XLine::GetManager() void XLineType::Mask::OnSet(XLine *s, const Anope::string &value) { - s->Recache(); + s->Recache(value); } void XLineManager::RegisterXLineManager(XLineManager *xlm) |