diff options
author | Adam <Adam@anope.org> | 2013-03-13 15:38:01 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-03-14 09:03:48 -0500 |
commit | 4c74020a6995a4be1ae55f562ca45617ccd193ba (patch) | |
tree | 846e8f05aaebd2e154fcb46096bd462c3fb6775a /src/config.cpp | |
parent | b95b8f0aae8b0c836fc00fa8b723ea09b4e52295 (diff) |
Add group and hide setings to fantasy{} blocks
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/config.cpp b/src/config.cpp index 1c6b2a0ce..3e52b4ae9 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -963,11 +963,18 @@ static bool DoFantasy(ServerConfig *config, const Anope::string &, const Anope:: Anope::string name = values[0].GetValue(); Anope::string service = values[1].GetValue(); Anope::string permission = values[2].GetValue(); - bool prepend_channel = values[3].GetBool(); + Anope::string group = values[3].GetValue(); + bool hide = values[4].GetBool(); + bool prepend_channel = values[5].GetBool(); + + CommandInfo &c = config->Fantasy[name]; + + c.name = service; + c.permission = permission; + c.group = group; + c.hide = hide; + c.prepend_channel = prepend_channel; - config->Fantasy[name].name = service; - config->Fantasy[name].permission = permission; - config->Fantasy[name].prepend_channel = prepend_channel; return true; } @@ -1330,9 +1337,9 @@ ConfigItems::ConfigItems(ServerConfig *conf) {DT_STRING, DT_STRING, DT_INTEGER, DT_STRING}, InitPrivileges, DoPrivileges, DonePrivileges}, {"fantasy", - {"name", "command", "permission", "prepend_channel", ""}, - {"", "", "", "yes", ""}, - {DT_STRING, DT_STRING, DT_STRING, DT_BOOLEAN}, + {"name", "command", "permission", "group", "hide", "prepend_channel", ""}, + {"", "", "", "", "no", "yes", ""}, + {DT_STRING, DT_STRING, DT_STRING, DT_STRING, DT_BOOLEAN, DT_BOOLEAN}, InitFantasy, DoFantasy, DoneFantasy}, {"command_group", {"name", "description", ""}, |