mirror of
https://github.com/anope/anope.git
synced 2026-06-29 10:36:38 +02:00
Update src/config.cpp
This commit is contained in:
+1
-1
@@ -339,7 +339,7 @@ static bool ValidateNickServ(ServerConfig *config, const Anope::string &tag, con
|
||||
throw ConfigException("The value for <nickserv:guestnickprefix> cannot exceed 21 characters in length!");
|
||||
}
|
||||
else if (value.equals_ci("registration"))
|
||||
if (!data.GetValue().equals_ci("none") && !data.GetValue().equals_ci("mail") && !data.GetValue().equals_ci("admin") && !data.GetValue().equals_ci("registration"))
|
||||
if (!data.GetValue().equals_ci("none") && !data.GetValue().equals_ci("mail") && !data.GetValue().equals_ci("admin") && !data.GetValue().equals_ci("disable"))
|
||||
throw ConfigException("The value for <nickserv:registration> must be one of \"none\", \"mail\", \"admin\", or \"disable\"");
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user