diff options
| author | 2022-09-04 01:26:58 +0100 | |
|---|---|---|
| committer | 2022-09-04 01:26:58 +0100 | |
| commit | ef594e2f9e2be8d1b3f8e9be64efad8afee2a909 (patch) | |
| tree | afec34edcb97f47797cd117e1baeb4e1e9b82344 /src/xline.cpp | |
| parent | Encourage people to submit patches for weird platforms. (diff) | |
Fix unnecessarily using c_str in parameters that take a std::string.
Diffstat (limited to 'src/xline.cpp')
| -rw-r--r-- | src/xline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 4de33f768..c45ea56ce 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -718,7 +718,7 @@ bool ELine::Matches(const std::string &str) bool KLine::Matches(const std::string &str) { - return (InspIRCd::MatchCIDR(str.c_str(), matchtext)); + return (InspIRCd::MatchCIDR(str, matchtext)); } bool GLine::Matches(const std::string &str) |
