summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-02 01:50:09 -0400
committerAdam <Adam@anope.org>2011-08-02 01:50:09 -0400
commitd43e1fb8002131db86453b6a931679a26e0bb9a6 (patch)
treea8d0433cad168a447884d0f93c7511986174b30e /src/config.cpp
parent41b40f6504b33e720233d5bcbdd5fce998d7d86f (diff)
Added opertype:modes
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 4790cd34d..ae27d7273 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -583,12 +583,14 @@ static bool DoOperType(ServerConfig *config, const Anope::string &, const Anope:
Anope::string inherits = values[1].GetValue();
Anope::string commands = values[2].GetValue();
Anope::string privs = values[3].GetValue();
+ Anope::string modes = values[4].GetValue();
ValueItem vi(name);
if (!ValidateNotEmpty(config, "opertype", "name", vi))
throw ConfigException("One or more values in your configuration file failed to validate. Please see your log for more information.");
OperType *ot = new OperType(name);
+ ot->modes = modes;
Anope::string tok;
spacesepstream cmdstr(commands);
@@ -1220,9 +1222,9 @@ ConfigItems::ConfigItems(ServerConfig *conf)
{DT_STRING},
InitModules, DoModule, DoneModules},
{"opertype",
- {"name", "inherits", "commands", "privs", ""},
- {"", "", "", "", ""},
- {DT_STRING, DT_STRING, DT_STRING, DT_STRING},
+ {"name", "inherits", "commands", "privs", "modes", ""},
+ {"", "", "", "", "", ""},
+ {DT_STRING, DT_STRING, DT_STRING, DT_STRING, DT_STRING},
InitOperTypes, DoOperType, DoneOperTypes},
{"oper",
{"name", "type", "password", "certfp", ""},