summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-05 16:50:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-05 16:50:23 +0000
commit4381bb63f57d7a542827f2481e8198313e4ff24a (patch)
tree0084db3653da203a847b5d92879e4c70c126859c
parentd396355d3e594544a4760f3e7d4e7c75a02430a8 (diff)
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
-rw-r--r--include/command_parse.h6
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
+