aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_tline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_tline.cpp')
-rw-r--r--src/modules/m_tline.cpp3
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++;