diff options
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |