diff options
author | Adam <Adam@anope.org> | 2013-04-08 00:19:07 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-08 00:19:07 -0500 |
commit | 1a37e1c0480f8bd11f57dfba514069a4e9c7d8de (patch) | |
tree | 41798df9056ef555f00c4a6c0964f1219c357dc3 /src/config.cpp | |
parent | fb7fef7a849342ab8463743497e781c5c3e6ae88 (diff) |
Made auto* chanserv privileges not hard coded.
Made cs_statusupdate not remove status on users if they still match other entries.
Move privilege descriptions out of the config
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; } |