From 482a8aa766c9e1a96ff63b44ed319fe51588c35c Mon Sep 17 00:00:00 2001 From: "viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 3 Sep 2008 19:55:36 +0000 Subject: BUILD : 1.7.21 (1425) BUGS : 873 NOTES : We now show config variables in the help. git-svn-id: svn://svn.anope.org/anope/trunk@1425 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1140 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_help.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'src/core/ns_help.c') diff --git a/src/core/ns_help.c b/src/core/ns_help.c index ce004ab3a..39a943799 100644 --- a/src/core/ns_help.c +++ b/src/core/ns_help.c @@ -64,12 +64,35 @@ int do_help(User * u) notice_help(s_NickServ, u, NICK_HELP_EXPIRES, NSExpire / 86400); notice_help(s_NickServ, u, NICK_HELP_FOOTER); - } else if (stricmp(cmd, "SET LANGUAGE") == 0) { + } else if ((stricmp(cmd, "SET LANGUAGE") == 0) && + findModule("ns_set")) { int i; + Command *c = findCommand(NICKSERV, cmd); + notice_help(s_NickServ, u, NICK_HELP_SET_LANGUAGE); for (i = 0; i < NUM_LANGS && langlist[i] >= 0; i++) notice_user(s_NickServ, u, " %2d) %s", i + 1, langnames[langlist[i]]); + do_help_limited(s_NickServ, u, c); + } else if ((stricmp(cmd, "RECOVER") == 0) && + findModule("ns_recover")) { + char relstr[192]; + Command *c = findCommand(NICKSERV, cmd); + + /* Convert NSReleaseTimeout seconds to string format */ + duration(u->na, relstr, sizeof(relstr), NSReleaseTimeout); + notice_help(s_NickServ, u, NICK_HELP_RECOVER, relstr); + do_help_limited(s_NickServ, u, c); + + } else if ((stricmp(cmd, "RELEASE") == 0) && + findModule("ns_release")) { + char relstr[192]; + Command *c = findCommand(NICKSERV, cmd); + + /* Convert NSReleaseTimeout seconds to string format */ + duration(u->na, relstr, sizeof(relstr), NSReleaseTimeout); + notice_help(s_NickServ, u, NICK_HELP_RELEASE, relstr); + do_help_limited(s_NickServ, u, c); } else { mod_help_cmd(s_NickServ, u, NICKSERV, cmd); } -- cgit