From 6e6b6b46aabfb3e558f66bd0fdc528e93505cf76 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 26 Jul 2010 20:10:33 -0400 Subject: [PATCH] Added hostserv/del command permission, fixed example.conf to show that hostserv/* is a command, not a permission --- data/example.conf | 6 +++--- modules/core/hs_del.cpp | 2 +- modules/core/hs_delall.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/example.conf b/data/example.conf index 5549aef5f..cb60c3d16 100644 --- a/data/example.conf +++ b/data/example.conf @@ -627,7 +627,7 @@ options * nickserv/saset/icq nickserv/saset/kill nickserv/saset/language nickserv/saset/message * nickserv/saset/private nickserv/saset/secure nickserv/saset/url nickserv/saset/noexpire * - * hostserv/set - Can add/modify/delete any vhost + * hostserv/set hostserv/del * * operserv/global operserv/news operserv/stats operserv/kick * operserv/mode operserv/session operserv/modlist operserv/ignore @@ -651,8 +651,8 @@ opertype /* The name of this opertype */ name = "Helper" - /* What privs (see above) this opertype has */ - privs = "hostserv/set" + /* What commands (see above) this opertype has */ + commands = "hostserv/*" } opertype diff --git a/modules/core/hs_del.cpp b/modules/core/hs_del.cpp index 2b6d90a10..a35b349a6 100644 --- a/modules/core/hs_del.cpp +++ b/modules/core/hs_del.cpp @@ -16,7 +16,7 @@ class CommandHSDel : public Command { public: - CommandHSDel() : Command("DEL", 1, 1, "hostserv/set") + CommandHSDel() : Command("DEL", 1, 1, "hostserv/del") { } diff --git a/modules/core/hs_delall.cpp b/modules/core/hs_delall.cpp index caa02caad..b91ac1a4f 100644 --- a/modules/core/hs_delall.cpp +++ b/modules/core/hs_delall.cpp @@ -16,7 +16,7 @@ class CommandHSDelAll : public Command { public: - CommandHSDelAll() : Command("DELALL", 1, 1, "hostserv/set") + CommandHSDelAll() : Command("DELALL", 1, 1, "hostserv/del") { }