1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 12:53:14 +02:00

Change some stuff to use NC::IsServicesOper instead of is_services_*.

Remove some unused language strings also.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2233 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-04-01 23:32:06 +00:00
parent 6712748378
commit b79c68d829
13 changed files with 2 additions and 260 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ class CommandBSSet : public Command
if (subcommand.empty())
{
notice_help(s_BotServ, u, BOT_HELP_SET);
if (is_services_admin(u))
if (u->nc->IsServicesOper())
notice_help(s_BotServ, u, BOT_SERVADMIN_HELP_SET);
}
else if (subcommand == "DONTKICKOPS")
+1 -1
View File
@@ -106,7 +106,7 @@ class CommandCSDrop : public Command
bool OnHelp(User *u, const std::string &subcommand)
{
if (is_services_admin(u) || is_services_root(u))
if (u->nc && u->nc->IsServicesOper())
notice_help(s_ChanServ, u, CHAN_SERVADMIN_HELP_DROP);
else
notice_help(s_ChanServ, u, CHAN_HELP_DROP);