diff options
author | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
commit | 9931ec299446c3d9e149f91a953748350c38eba6 (patch) | |
tree | fb3969d5aeb2ce23a7d2cde9fd9e47841b125c4b /src | |
parent | 5f3dfc296041540960f372b010eea623bdd7d335 (diff) |
Use m_rewrite to rewrite op, deop, halfop, ... etc
Diffstat (limited to 'src')
-rw-r--r-- | src/config.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config.cpp b/src/config.cpp index 79ebce9f3..f2836abd2 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -1011,9 +1011,11 @@ 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(); config->Fantasy[name].name = service; config->Fantasy[name].permission = permission; + config->Fantasy[name].prepend_channel = prepend_channel; return true; } @@ -1348,9 +1350,9 @@ ConfigItems::ConfigItems(ServerConfig *conf) {DT_STRING, DT_STRING, DT_INTEGER, DT_STRING}, InitPrivileges, DoPrivileges, DonePrivileges}, {"fantasy", - {"name", "command", "permission", ""}, - {"", "", "", ""}, - {DT_STRING, DT_STRING, DT_STRING}, + {"name", "command", "permission", "prepend_channel", ""}, + {"", "", "", "yes", ""}, + {DT_STRING, DT_STRING, DT_STRING, DT_BOOLEAN}, InitFantasy, DoFantasy, DoneFantasy}, {"", {""}, |