diff options
author | viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-03 19:55:36 +0000 |
---|---|---|
committer | viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-03 19:55:36 +0000 |
commit | 482a8aa766c9e1a96ff63b44ed319fe51588c35c (patch) | |
tree | 0fa77c006e553e8b9154bb7d1dcf649428394a96 /src/core/ns_help.c | |
parent | 6846e75cc883f690ab4bfa83bdd398d83df5c0c9 (diff) |
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
Diffstat (limited to 'src/core/ns_help.c')
-rw-r--r-- | src/core/ns_help.c | 25 |
1 files changed, 24 insertions, 1 deletions
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); } |