diff options
| author | 2007-06-05 16:50:23 +0000 | |
|---|---|---|
| committer | 2007-06-05 16:50:23 +0000 | |
| commit | 4381bb63f57d7a542827f2481e8198313e4ff24a (patch) | |
| tree | 0084db3653da203a847b5d92879e4c70c126859c /include/command_parse.h | |
| parent | Refactored InspIRCd::Duration(). The leetcode now lives! (diff) | |
| download | inspircd++-4381bb63f57d7a542827f2481e8198313e4ff24a.tar.gz inspircd++-4381bb63f57d7a542827f2481e8198313e4ff24a.tar.bz2 inspircd++-4381bb63f57d7a542827f2481e8198313e4ff24a.zip | |
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
Diffstat (limited to 'include/command_parse.h')
| -rw-r--r-- | include/command_parse.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 + |
