]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_ident Make use of the min parameter of ConfigTag::getInt()
authorAttila Molnar <attilamolnar@hush.com>
Wed, 28 May 2014 11:47:41 +0000 (13:47 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 28 May 2014 11:47:41 +0000 (13:47 +0200)
src/modules/m_ident.cpp

index ae21c6940a4cf2d7a89230a6235d0fd3a43d65b8..b86ed2cbe4eacb7aec87821bb07e81d01fcb1227 100644 (file)
@@ -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);
        }