From b1cb8ef3a4a892b4f3d470d0e2380d4cc07d2a44 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 20 Aug 2021 15:58:54 +0100 Subject: Avoid duplicating User::MakeHostIP. --- src/modules/m_tline.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_tline.cpp') diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index f058cace3..f9e98b08e 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -49,8 +49,7 @@ class CommandTline : public Command } else { - std::string host = u->ident + "@" + u->GetIPString(); - if (InspIRCd::MatchCIDR(host, parameters[0])) + if (InspIRCd::MatchCIDR(u->MakeHostIP(), parameters[0])) { n_matched++; n_match_ip++; -- cgit v1.3.1-10-gc9f91