summaryrefslogtreecommitdiff
path: root/src/core/hs_set.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-04 01:27:18 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-04 01:27:18 +0000
commit9f20b2f7dda30edd418e25af295deef279f2a2ad (patch)
treeca76a4ac05614f114951b371da696a7e6510ee91 /src/core/hs_set.c
parentdf627065aca697addd21b23bee95958271655131 (diff)
Removed is_host_setter() and is_host_remover() from code and replaced them with opertype priv "hostserv/set", removed <hostserv:hostsetters> from configuration.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2260 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/hs_set.c')
-rw-r--r--src/core/hs_set.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/hs_set.c b/src/core/hs_set.c
index fd66ca911..a117f7540 100644
--- a/src/core/hs_set.c
+++ b/src/core/hs_set.c
@@ -26,6 +26,12 @@ class CommandHSSet : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
+ if (!u->nc->HasPriv("hostserv/set"))
+ {
+ notice_lang(s_HostServ, u, ACCESS_DENIED);
+ return MOD_CONT;
+ }
+
const char *nick = params[0].c_str();
const char *rawhostmask = params[1].c_str();
char *hostmask = new char[HOSTMAX];
@@ -143,9 +149,6 @@ class CommandHSSet : public Command
bool OnHelp(User *u, const std::string &subcommand)
{
- if (!is_host_setter(u))
- return false;
-
notice_help(s_HostServ, u, HOST_HELP_SET);
return true;
}
@@ -177,8 +180,7 @@ class HSSet : public Module
**/
void myHostServHelp(User *u)
{
- if (is_host_setter(u))
- notice_lang(s_HostServ, u, HOST_HELP_CMD_SET);
+ notice_lang(s_HostServ, u, HOST_HELP_CMD_SET);
}
MODULE_INIT("hs_set", HSSet)