diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-13 23:12:30 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-13 23:12:30 -0600 |
commit | cb484d17d9d3a4f9dd3cb9f4ab14473dad6479c2 (patch) | |
tree | 2ae94a4ade101e0fabcb1c7d8eeccccfce80ecff | |
parent | 0b2b252c6f2e816a67d121a132e8b6fae9b5a3d8 (diff) |
make `:m` in `defed_in` & `delete_in` mean minutes not months
-rw-r--r-- | app/lib/bangtags.rb | 8 |
1 files 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 |