diff options
author | Adam <Adam@anope.org> | 2011-08-12 03:13:56 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-12 03:13:56 -0400 |
commit | feee50e6959171123773417caab73ecad3af824b (patch) | |
tree | db23ef04c56f0552e1876e9d9a75d1b3142bca3b /src/config.cpp | |
parent | 54710a782b49f01a868987227e9b8748d28834cb (diff) |
Allow bot usermodes to be configurable
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/config.cpp b/src/config.cpp index c4d59d6fc..baedb92ba 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -937,6 +937,7 @@ static bool DoServices(ServerConfig *config, const Anope::string &, const Anope: Anope::string user = values[1].GetValue(); Anope::string host = values[2].GetValue(); Anope::string gecos = values[3].GetValue(); + Anope::string modes = values[4].GetValue(); ValueItem vi(nick); if (!ValidateNotEmpty(config, "service", "nick", vi)) @@ -958,7 +959,7 @@ static bool DoServices(ServerConfig *config, const Anope::string &, const Anope: BotInfo *bi = findbot(nick); if (bi != NULL) return true; - bi = new BotInfo(nick, user, host, gecos); + bi = new BotInfo(nick, user, host, gecos, modes); bi->SetFlag(BI_CONF); return true; } @@ -1257,9 +1258,9 @@ ConfigItems::ConfigItems(ServerConfig *conf) {DT_STRING, DT_STRING, DT_STRING, DT_STRING}, InitOpers, DoOper, DoneOpers}, {"service", - {"nick", "user", "host", "gecos", ""}, - {"", "", "", "", ""}, - {DT_STRING, DT_STRING, DT_STRING, DT_STRING}, + {"nick", "user", "host", "gecos", "modes", ""}, + {"", "", "", "", "", ""}, + {DT_STRING, DT_STRING, DT_STRING, DT_STRING, DT_STRING}, InitServices, DoServices, DoneServices}, {"log", {"target", "source", "logage", "inhabitlogchannel", "admin", "override", "commands", "servers", "channels", "users", "other", "rawio", "debug", ""}, |