diff options
| author | 2008-09-06 13:30:45 +0000 | |
|---|---|---|
| committer | 2008-09-06 13:30:45 +0000 | |
| commit | cc07a20aa29bfa7bf23f3cd99b97929882113328 (patch) | |
| tree | 85835335040eec2d61547e222610284bf53ac716 /include | |
| parent | Properly handle CIDR etc for user pointer extbans (diff) | |
Nope w00t it wasnt the last :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10413 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
| -rw-r--r-- | include/u_listmode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h index 689505c5c..390a8729b 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -523,10 +523,10 @@ class ListModeBase : public ModeHandler { if (LM->user) { - if (InspIRCd::Match(LM->user->GetFullRealHost(), it->mask) || InspIRCd::Match(LM->user->GetFullHost(), it->mask) || (InspIRCd::MatchCIDR(LM->literal, it->mask))) + 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)))) return it->mask.c_str(); } - else if (InspIRCd::Match(LM->literal.substr(2), it->mask)) + else if (InspIRCd::Match(LM->literal, it->mask.substr(2))) return it->mask.c_str(); } else |
