summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-26 12:54:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-26 12:54:47 +0000
commit470f46ae578daf0475262d843914a47240389db8 (patch)
tree63a2fbc016a4968d95b7ebfa5ce7ac74878f75ad
parented1e16c6cde5d5b1e84ce605f1e3b2d7aa4d5427 (diff)
Default ident timeout to 1 sec if not defined (a bit low, but better than 0!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2918 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_ident.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 1e9933516..eb8f4df16 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -146,6 +146,8 @@ class ModuleIdent : public Module
{
Conf = new ConfigReader;
IdentTimeout = Conf->ReadInteger("ident","timeout",0,true);
+ if (!IdentTimeout)
+ IdentTimeout = 1;
delete Conf;
}