mirror of
https://github.com/anope/anope.git
synced 2026-06-26 12:16:38 +02:00
Fixes multiple issues with HELP with non-identified nicks. (Thanks Adam!)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2332 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ class CommandBSSet : public Command
|
||||
if (subcommand.empty())
|
||||
{
|
||||
notice_help(s_BotServ, u, BOT_HELP_SET);
|
||||
if (u->nc->IsServicesOper())
|
||||
if (u->nc && u->nc->IsServicesOper())
|
||||
notice_help(s_BotServ, u, BOT_SERVADMIN_HELP_SET);
|
||||
}
|
||||
else if (subcommand == "DONTKICKOPS")
|
||||
|
||||
@@ -97,7 +97,7 @@ class CommandCSLogout : public Command
|
||||
|
||||
bool OnHelp(User *u, const std::string &subcommand)
|
||||
{
|
||||
if (u->nc->HasCommand("chanserv/logout"))
|
||||
if (u->nc && u->nc->HasCommand("chanserv/logout"))
|
||||
notice_help(s_NickServ, u, CHAN_SERVADMIN_HELP_LOGOUT);
|
||||
else
|
||||
notice_help(s_NickServ, u, CHAN_HELP_LOGOUT);
|
||||
|
||||
@@ -129,7 +129,7 @@ class CommandCSRegister : public Command
|
||||
|
||||
bool OnHelp(User *u, const std::string &subcommand)
|
||||
{
|
||||
notice_help(s_ChanServ, u, CHAN_HELP_REGISTER);
|
||||
notice_help(s_ChanServ, u, CHAN_HELP_REGISTER, s_ChanServ);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -195,7 +195,7 @@ class CommandNSInfo : public Command
|
||||
|
||||
bool OnHelp(User *u, const std::string &subcommand)
|
||||
{
|
||||
if (u->nc->IsServicesOper())
|
||||
if (u->nc && u->nc->IsServicesOper())
|
||||
notice_help(s_NickServ, u, NICK_SERVADMIN_HELP_INFO);
|
||||
else
|
||||
notice_help(s_NickServ, u, NICK_HELP_INFO);
|
||||
|
||||
Reference in New Issue
Block a user