#1080 mod_discoitems: overrides for all domains if loaded globally

Reporter ge0rg
Owner Nobody
Stars ★ (1)  
  • Status-New
  • Priority-Medium
  • Type-Defect
  1. ge0rg on

    The documentation claims: > Simply add "discoitems" to your modules_enabled list. Then add the disco_items option to hosts for which you wish to override the default response. However, if the module is loaded globally, it will also override the disco#items for domains that do not have a `disco_items` config option set, to the empty list. Loading the "discoitems" module only on the host I want limited works around this problem. I'm not sure if this was only introduced with a recent change to prosody 0.10 (I'm running the 1nightly459-1~stretch debian package), or if it was triggered by a config change I did. Please change the module to not override the disco#items response if no `disco_items` variable is set for a host, or at least document the behavior.

  2. ge0rg on

    P.S: It is also a bit frustrating and inconsistent that the module is called "discoitems" but the config value is called "disco_items".

New comment