summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-05-28 13:47:41 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-05-28 13:47:41 +0200
commitbde1420e5a5f6ac8a4fbe2d8c6173abb693eb99f (patch)
treeb67b2214962412a4ef890de94b7c862a34bbadab /src/modules/m_ident.cpp
parente98f1c6429aa27fe561cfaf177464c4a62ba2cd7 (diff)
m_ident Make use of the min parameter of ConfigTag::getInt()
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index ae21c6940..b86ed2cbe 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -283,9 +283,7 @@ class ModuleIdent : public Module
void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
{
ConfigTag* tag = ServerInstance->Config->ConfValue("ident");
- RequestTimeout = tag->getInt("timeout", 5);
- if (!RequestTimeout)
- RequestTimeout = 5;
+ RequestTimeout = tag->getInt("timeout", 5, 1);
NoLookupPrefix = tag->getBool("nolookupprefix", false);
}