From ef594e2f9e2be8d1b3f8e9be64efad8afee2a909 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Sep 2022 01:26:58 +0100 Subject: Fix unnecessarily using c_str in parameters that take a std::string. --- src/xline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xline.cpp') 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) -- cgit v1.3.1-10-gc9f91