#878 moduleapi get_option variant for time ranges

Reporter Zash
Owner Zash
Created
Updated
Stars ★ (1)
Tags
  • Status-Fixed
  • Type-Enhancement
  • Milestone-0.13
  • Difficulty-Easy
  • Priority-Medium
  1. Zash on

    Description of feature: A config API method like eg module:get_option_time_range(name, default) for time spans, which would take a number or a string like "5 minutes" or "3 weeks" and converts it to seconds. This could help reduce inconsistency and duplication for modules that take such options.

  2. Zash on

    Changes
    • tags Difficulty-Easy
  3. Zash on

    Done in https://hg.prosody.im/trunk/rev/c9ef35fab0b1

    Changes
    • tags Milestone-0.13 Status-Fixed
    • owner Zash

New comment

Not published. Used for spam prevention and optional update notifications.