Skip to content

Config lib overwrites global settings when using lists or sets #1916

Open

Description

@xurion

When using the config lib to store a list or set (using S{} or L{}) the global settings are overloaded after reloading an addon and modifying settings.

You can easily reproduce this issue with the Autojoin addon:

  1. Remove settings.xml if it already exists for Autojoin.
  2. Load Autojoin.
  3. Add to the whitelist with //autojoin whitelist add xurion. The settings.xml file will look ok at this point.
  4. Reload Autojoin.
  5. Add a second entry on to the whitelist.

The <global> in settings.xml will now be polluted with incorrect settings that will now be applied to all other characters.

Activity

  1. RubenatorX commented on Aug 8, 2020

    @RubenatorX
    Collaborator

    this is not a problem with the config lib, Its a problem with the addon. It needs to be re-loading settings on login, and its not doing that.

  2. RubenatorX commented on Aug 8, 2020

    @RubenatorX
    Collaborator

    Actually I'm wrong, it definitely decides to add some of the settings to global, not sure why will chat with someone about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions