diff options
author | Peter Powell <petpow@saberuk.com> | 2019-02-01 10:43:51 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-02-04 09:47:24 +0000 |
commit | d66757a43817966edc0fdbe62722415354b042aa (patch) | |
tree | 52aa2537d5aff1aa636e5692ea91415c354c4c73 | |
parent | f35490427c17229e81b1ff266c7dcaf67d1a35b5 (diff) |
ident: reduce the amount of messages sent when a lookup fails.
-rw-r--r-- | src/modules/m_ident.cpp | 5 |
1 files 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."); |