summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/command_parse.h')
-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
+