From 8d0aa3b5890340467167094f1e8b8140bb5adee6 Mon Sep 17 00:00:00 2001 From: rburchell Date: Fri, 13 Feb 2009 15:39:55 +0000 Subject: Audit ns_*. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2036 5417fbe8-f217-4b02-8779-1006273d7864 --- TODO | 22 ---------------------- src/core/ns_help.c | 6 +++--- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/TODO b/TODO index 70a6018e7..7ad07b246 100644 --- a/TODO +++ b/TODO @@ -46,28 +46,6 @@ Legend: [ ] HelpServ must die (1.9.1?) [-] Command parser cleanup: mod_current_buffer needs to go away and be replaced by a proper parser. Commands should then indicate how they want the buffer split. These all need reviewing, remove them from the list _AS YOU GO_. Talk t0 w00t or CBX if you don't know what this is for: - src/core/ns_access.c - src/core/ns_alist.c - src/core/ns_drop.c - src/core/ns_forbid.c - src/core/ns_getemail.c - src/core/ns_getpass.c - src/core/ns_ghost.c - src/core/ns_group.c - src/core/ns_help.c - src/core/ns_identify.c - src/core/ns_info.c - src/core/ns_list.c - src/core/ns_logout.c - src/core/ns_recover.c - src/core/ns_register.c - src/core/ns_release.c - src/core/ns_saset.c - src/core/ns_sendpass.c - src/core/ns_set.c - src/core/ns_status.c - src/core/ns_suspend.c - src/core/ns_update.c src/core/os_admin.c src/core/os_akill.c src/core/os_chankill.c diff --git a/src/core/ns_help.c b/src/core/ns_help.c index 5ba3d4d79..339b11f25 100644 --- a/src/core/ns_help.c +++ b/src/core/ns_help.c @@ -18,14 +18,14 @@ class CommandNSHelp : public Command { public: - CommandNSHelp() : Command("HELP", 0, 1) + CommandNSHelp() : Command("HELP", 1, 1) { } CommandReturn Execute(User *u, std::vector ¶ms) { - const char *cmd = params.size() > 0 ? params[0].c_str() : NULL; - if (cmd && !stricmp(cmd, "SET LANGUAGE")) + const char *cmd = params[0].c_str(); + if (!stricmp(cmd, "SET LANGUAGE")) { int i; notice_help(s_NickServ, u, NICK_HELP_SET_LANGUAGE); -- cgit