mirror of
https://github.com/anope/anope.git
synced 2026-06-24 20:06:40 +02:00
Fixed bug #1191
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user