From 06faf6affccd2dc548f95ac626fdf8635513860d Mon Sep 17 00:00:00 2001 From: lethality Date: Sat, 18 Sep 2010 03:36:44 +0100 Subject: [PATCH] Fixed bug #1191 --- src/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cpp b/src/config.cpp index 69dc27f9b..63141be0b 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -508,7 +508,7 @@ bool ValidateEmailReg(ServerConfig *config, const Anope::string &tag, const Anop { if (value.equals_ci("preregexpire")) { - if (!data.GetInteger()) + if (!data.GetInteger() && !dotime(data.GetValue())) throw ConfigException("The value for <" + tag + ":" + value + "> must be non-zero when e-mail registration are enabled!"); } else