diff options
| author | 2014-05-28 13:47:41 +0200 | |
|---|---|---|
| committer | 2014-05-28 13:47:41 +0200 | |
| commit | bde1420e5a5f6ac8a4fbe2d8c6173abb693eb99f (patch) | |
| tree | b67b2214962412a4ef890de94b7c862a34bbadab /src/modules/m_ident.cpp | |
| parent | Describe <ident:nolookupprefix> (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.cpp | 4 |
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); } |
