From: Peter Powell Date: Fri, 1 Feb 2019 10:43:51 +0000 (+0000) Subject: ident: reduce the amount of messages sent when a lookup fails. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=inline;h=d66757a43817966edc0fdbe62722415354b042aa;p=user%2Fhenk%2Fcode%2Finspircd.git ident: reduce the amount of messages sent when a lookup fails. --- 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.");