diff options
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/config.cpp b/src/config.cpp index 4d1267f23..d49d9e8d9 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -812,18 +812,13 @@ static bool InitPrivileges(ServerConfig *config, const Anope::string &) static bool DoPrivileges(ServerConfig *config, const Anope::string &, const Anope::string *, ValueList &values, int *) { Anope::string name = values[0].GetValue(); - Anope::string desc = values[1].GetValue(); - int rank = values[2].GetInteger(); + int rank = values[1].GetInteger(); ValueItem vi(name); if (!ValidateNotEmpty(config, "privilege", "name", vi)) throw ConfigException("One or more values in your configuration file failed to validate. Please see your log for more information."); - vi = ValueItem(desc); - if (!ValidateNotEmpty(config, "privilege", "desc", vi)) - throw ConfigException("One or more values in your configuration file failed to validate. Please see your log for more information."); - - PrivilegeManager::AddPrivilege(Privilege(name, desc, rank)); + PrivilegeManager::AddPrivilege(Privilege(name, "", rank)); return true; } |