diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-06 13:32:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-06 13:32:13 +0000 |
commit | 3b83811fa9ce63e5713f67d9fba9a70fa8dcba9f (patch) | |
tree | df76ba00bf924d77ab6345f23f6aba41f7a26dc0 | |
parent | cc07a20aa29bfa7bf23f3cd99b97929882113328 (diff) |
Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10414 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/u_listmode.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h index 390a8729b..69ee4f668 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -521,12 +521,13 @@ class ListModeBase : public ModeHandler { if (LM->extban && it->mask.length() > 1 && it->mask[0] == LM->extban && it->mask[1] == ':') { + static std::string ext = it->mask.substr(2); if (LM->user) { - if (InspIRCd::Match(LM->user->GetFullRealHost(), it->mask.substr(2)) || InspIRCd::Match(LM->user->GetFullHost(), it->mask.substr(2)) || (InspIRCd::MatchCIDR(LM->literal, it->mask.substr(2)))) + if (InspIRCd::Match(LM->user->GetFullRealHost(), ext) || InspIRCd::Match(LM->user->GetFullHost(), ext) || (InspIRCd::MatchCIDR(LM->literal, ext))) return it->mask.c_str(); } - else if (InspIRCd::Match(LM->literal, it->mask.substr(2))) + else if (InspIRCd::Match(LM->literal, ext)) return it->mask.c_str(); } else |