From cb484d17d9d3a4f9dd3cb9f4ab14473dad6479c2 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 13 Jan 2020 23:12:30 -0600 Subject: make `:m` in `defed_in` & `delete_in` mean minutes not months --- app/lib/bangtags.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 42dd661e6..abc49aee9 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -718,7 +718,7 @@ class Bangtags unit = cmd[2].present? ? cmd[2].downcase : 'minutes' end delete_after = case unit - when 'min', 'mins', 'minute', 'minutes' + when 'm', 'min', 'mins', 'minute', 'minutes' i.minutes when 'h', 'hr', 'hrs', 'hour', 'hours' i.hours @@ -726,7 +726,7 @@ class Bangtags i.days when 'w', 'wk', 'wks', 'week', 'weeks' i.weeks - when 'm', 'mn', 'mns', 'month', 'months' + when 'mn', 'mns', 'month', 'months' i.months when 'y', 'yr', 'yrs', 'year', 'years' i.years @@ -762,7 +762,7 @@ class Bangtags unit = cmd[2].present? ? cmd[2].downcase : 'minutes' end defederate_after = case unit - when 'min', 'mins', 'minute', 'minutes' + when 'm', 'min', 'mins', 'minute', 'minutes' i.minutes when 'h', 'hr', 'hrs', 'hour', 'hours' i.hours @@ -770,7 +770,7 @@ class Bangtags i.days when 'w', 'wk', 'wks', 'week', 'weeks' i.weeks - when 'm', 'mn', 'mns', 'month', 'months' + when 'mn', 'mns', 'month', 'months' i.months when 'y', 'yr', 'yrs', 'year', 'years' i.years -- cgit