mirror of
https://github.com/anope/anope.git
synced 2026-07-01 19:46:38 +02:00
Fixed the remaining commands to always show all users help and to appear in the command list
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2520 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-4
@@ -189,10 +189,7 @@ public:
|
||||
}
|
||||
void ChanServHelp(User *u)
|
||||
{
|
||||
if (!CSListOpersOnly || (is_oper(u)))
|
||||
{
|
||||
notice_lang(s_ChanServ, u, CHAN_HELP_CMD_LIST);
|
||||
}
|
||||
notice_lang(s_ChanServ, u, CHAN_HELP_CMD_LIST);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+1
-2
@@ -223,8 +223,7 @@ class NSList : public Module
|
||||
}
|
||||
void NickServHelp(User *u)
|
||||
{
|
||||
if (!NSListOpersOnly || is_oper(u))
|
||||
notice_lang(s_NickServ, u, NICK_HELP_CMD_LIST);
|
||||
notice_lang(s_NickServ, u, NICK_HELP_CMD_LIST);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -39,9 +39,6 @@ class CommandOSQuit : public Command
|
||||
|
||||
bool OnHelp(User *u, const ci::string &subcommand)
|
||||
{
|
||||
if (!u->nc->HasCommand("operserv/quit"))
|
||||
return false;
|
||||
|
||||
notice_help(s_OperServ, u, OPER_HELP_QUIT);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -40,9 +40,6 @@ class CommandOSShutdown : public Command
|
||||
|
||||
bool OnHelp(User *u, const ci::string &subcommand)
|
||||
{
|
||||
if (!u->nc->HasCommand("operserv/shutdown"))
|
||||
return false;
|
||||
|
||||
notice_help(s_OperServ, u, OPER_HELP_SHUTDOWN);
|
||||
return true;
|
||||
}
|
||||
|
||||
+2
-10
@@ -125,9 +125,6 @@ class CommandNSOInfo : public Command
|
||||
|
||||
bool OnHelp(User *u, const ci::string &subcommand)
|
||||
{
|
||||
if (!is_oper(u))
|
||||
return false;
|
||||
|
||||
me->NoticeLang(s_NickServ, u, OINFO_HELP);
|
||||
return true;
|
||||
}
|
||||
@@ -202,9 +199,6 @@ class CommandCSOInfo : public Command
|
||||
|
||||
bool OnHelp(User *u, const ci::string &subcommand)
|
||||
{
|
||||
if (!is_oper(u))
|
||||
return false;
|
||||
|
||||
me->NoticeLang(s_ChanServ, u, OCINFO_HELP);
|
||||
return true;
|
||||
}
|
||||
@@ -611,14 +605,12 @@ class OSInfo : public Module
|
||||
|
||||
void NickServHelp(User *u)
|
||||
{
|
||||
if (is_oper(u))
|
||||
this->NoticeLang(s_NickServ, u, OINFO_HELP_CMD);
|
||||
this->NoticeLang(s_NickServ, u, OINFO_HELP_CMD);
|
||||
}
|
||||
|
||||
void ChanServHelp(User *u)
|
||||
{
|
||||
if (is_oper(u))
|
||||
this->NoticeLang(s_ChanServ, u, OCINFO_HELP_CMD);
|
||||
this->NoticeLang(s_ChanServ, u, OCINFO_HELP_CMD);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user