From ce09914e1d767e88f6f5d72ac622d1321c91f9ee Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Mon, 23 Mar 2009 04:29:25 +0000 Subject: Fix part #2 of bug #1010, patched partially by Adam and cleaned up / finished by me, the help commands should work as expected now, including "help set ..." and similar help entries. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2194 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_set.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/ns_set.c') diff --git a/src/core/ns_set.c b/src/core/ns_set.c index 9e00c0267..d99c657eb 100644 --- a/src/core/ns_set.c +++ b/src/core/ns_set.c @@ -463,8 +463,6 @@ class CommandNSSet : public Command */ if (u->nc->flags & NI_SUSPENDED) notice_lang(s_NickServ, u, NICK_X_SUSPENDED, u->nc->display); - else if (!nick_identified(u)) - notice_lang(s_NickServ, u, NICK_IDENTIFY_REQUIRED, s_NickServ); else if (!stricmp(cmd, "DISPLAY")) return this->DoSetDisplay(u, params, u->nc); else if (!stricmp(cmd, "PASSWORD")) @@ -498,7 +496,9 @@ class CommandNSSet : public Command bool OnHelp(User *u, const std::string &subcommand) { - if (subcommand == "DISPLAY") + if (subcommand.empty()) + notice_help(s_NickServ, u, NICK_HELP_SET); + else if (subcommand == "DISPLAY") notice_help(s_NickServ, u, NICK_HELP_SET_DISPLAY); else if (subcommand == "PASSWORD") notice_help(s_NickServ, u, NICK_HELP_SET_PASSWORD); @@ -523,7 +523,7 @@ class CommandNSSet : public Command else if (subcommand == "AUTOOP") notice_help(s_NickServ, u, NICK_HELP_SET_AUTOOP); else - notice_help(s_NickServ, u, NICK_HELP_SET); + return false; return true; } -- cgit