summaryrefslogtreecommitdiff
path: root/src/modules/m_rline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_rline.cpp')
-rw-r--r--src/modules/m_rline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp
index eb54e56b7..6fd7b832c 100644
--- a/src/modules/m_rline.cpp
+++ b/src/modules/m_rline.cpp
@@ -62,7 +62,7 @@ class RLine : public XLine
if (lu && lu->exempt)
return false;
- const std::string host = u->nick + "!" + u->ident + "@" + u->host + " " + u->fullname;
+ const std::string host = u->nick + "!" + u->ident + "@" + u->GetRealHost() + " " + u->fullname;
const std::string ip = u->nick + "!" + u->ident + "@" + u->GetIPString() + " " + u->fullname;
return (regex->Matches(host) || regex->Matches(ip));
}