diff --git a/ircd/ircd_parser.y b/ircd/ircd_parser.y index fa8dd3df..4f6a592e 100644 --- a/ircd/ircd_parser.y +++ b/ircd/ircd_parser.y @@ -170,7 +170,7 @@ static void add_cur_list(int type, char *str, int number) %token NUMBER %type qstring string -%type number timespec +%type number timespec unittimespec %type oneitem single itemlist %start conf @@ -308,7 +308,7 @@ qstring: QSTRING { strcpy($$, $1); } ; string: STRING { strcpy($$, $1); } ; number: NUMBER { $$ = $1; } ; -timespec: number string +unittimespec: number string { time_t t; @@ -320,7 +320,13 @@ timespec: number string $$ = $1 * t; } - | timespec timespec + ; + +timespec: unittimespec + { + $$ = $1; + } + | timespec unittimespec { $$ = $1 + $2; }