From d66757a43817966edc0fdbe62722415354b042aa Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 1 Feb 2019 10:43:51 +0000 Subject: ident: reduce the amount of messages sent when a lookup fails. --- src/modules/m_ident.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 74f049b44..7bd403fd8 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -352,7 +352,8 @@ class ModuleIdent : public Module if (ServerInstance->Time() >= compare) { /* Ident timeout */ - user->WriteNotice("*** Ident request timed out."); + PrefixIdent(user); + user->WriteNotice("*** Ident lookup timed out, using " + user->ident + " instead."); } else if (!isock->HasResult()) { @@ -361,7 +362,7 @@ class ModuleIdent : public Module } /* wooo, got a result (it will be good, or bad) */ - if (isock->result.empty()) + else if (isock->result.empty()) { PrefixIdent(user); user->WriteNotice("*** Could not find your ident, using " + user->ident + " instead."); -- cgit v1.2.3