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_customtitle.cpp | |
| parent | Refer to oper names in core_oper as "username" not "login". (diff) | |
Avoid duplicating User::MakeHostIP.
Diffstat (limited to 'src/modules/m_customtitle.cpp')
| -rw-r--r-- | src/modules/m_customtitle.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index a1af43f5e..3dd168df3 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -48,9 +48,7 @@ struct CustomTitle bool MatchUser(User* user) const { - const std::string userHost = user->ident + "@" + user->GetRealHost(); - const std::string userIP = user->ident + "@" + user->GetIPString(); - return InspIRCd::MatchMask(host, userHost, userIP); + return InspIRCd::MatchMask(host, user->MakeHost(), user->MakeHostIP()); } bool CheckPass(User* user, const std::string& pass) const |
