commit d66757a43817966edc0fdbe62722415354b042aa
parent f35490427c17229e81b1ff266c7dcaf67d1a35b5
Author: Peter Powell <petpow@saberuk.com>
Date: Fri, 1 Feb 2019 10:43:51 +0000
ident: reduce the amount of messages sent when a lookup fails.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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.");