mirror of
https://github.com/anope/anope.git
synced 2026-07-08 19:43:13 +02:00
Fixed the /nickserv help info output to services opers and the reply from /chanserv help info to be correct
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2914 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ class CommandCSInfo : public Command
|
||||
bool OnHelp(User *u, const ci::string &subcommand)
|
||||
{
|
||||
notice_lang(Config.s_ChanServ, u, CHAN_HELP_INFO);
|
||||
if (u->Account() && u->Account()->IsServicesOper())
|
||||
if (u->Account() && u->Account()->HasPriv("chanserv/auspex"))
|
||||
notice_lang(Config.s_ChanServ, u, CHAN_SERVADMIN_HELP_INFO);
|
||||
|
||||
return true;
|
||||
|
||||
+2
-2
@@ -190,10 +190,10 @@ class CommandNSInfo : public Command
|
||||
|
||||
bool OnHelp(User *u, const ci::string &subcommand)
|
||||
{
|
||||
notice_help(Config.s_NickServ, u, NICK_HELP_INFO);
|
||||
if (u->Account() && u->Account()->IsServicesOper())
|
||||
notice_help(Config.s_NickServ, u, NICK_SERVADMIN_HELP_INFO);
|
||||
else
|
||||
notice_help(Config.s_NickServ, u, NICK_HELP_INFO);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user