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:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user