From 4381bb63f57d7a542827f2481e8198313e4ff24a Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 5 Jun 2007 16:50:23 +0000 Subject: Add comment to what the table here is for git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7238 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/command_parse.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/command_parse.h') diff --git a/include/command_parse.h b/include/command_parse.h index 6d98af97c..cbcbea2d8 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -205,6 +205,11 @@ class cmd_reload : public command_t CmdResult Handle(const char** parameters, int pcnt, userrec *user); }; +/** A lookup table of values for multiplier characters used by + * InspIRCd::Duration(). In this lookup table, the indexes for + * the ascii values 'm' and 'M' have the value '60', the indexes + * for the ascii values 'D' and 'd' have a value of '86400', etc. + */ const int duration_multi[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -228,3 +233,4 @@ const int duration_multi[] = }; #endif + -- cgit v1.2.3