diff options
| author | 2021-08-20 15:58:54 +0100 | |
|---|---|---|
| committer | 2021-08-20 16:31:47 +0100 | |
| commit | b1cb8ef3a4a892b4f3d470d0e2380d4cc07d2a44 (patch) | |
| tree | 21d721b0b4a49ed4dcac19cbc098d51406359ab9 /src/modules/m_tline.cpp | |
| parent | Refer to oper names in core_oper as "username" not "login". (diff) | |
| download | inspircd++-b1cb8ef3a4a892b4f3d470d0e2380d4cc07d2a44.tar.gz inspircd++-b1cb8ef3a4a892b4f3d470d0e2380d4cc07d2a44.tar.bz2 inspircd++-b1cb8ef3a4a892b4f3d470d0e2380d4cc07d2a44.zip | |
Avoid duplicating User::MakeHostIP.
Diffstat (limited to 'src/modules/m_tline.cpp')
| -rw-r--r-- | src/modules/m_tline.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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++; |
