diff options
author | lethality <lethality@anope.org> | 2010-09-18 03:36:44 +0100 |
---|---|---|
committer | lethality <lethality@anope.org> | 2010-09-18 03:36:44 +0100 |
commit | 06faf6affccd2dc548f95ac626fdf8635513860d (patch) | |
tree | dd18b14932c7d39883282be59c17130e85273523 /src/config.cpp | |
parent | 5ec605e42460972cc498419120a835caa9ca13ba (diff) |
Fixed bug #1191
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 |