1
0
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:
sjaz
2009-06-20 22:27:44 +00:00
parent b81d902a2e
commit 28d77b7ebe
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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")
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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);