Claire 8ec873015a
registry: Fix some config values being reset when running upkeep
For example, with `supybot.protocols.http.proxy`:

When upkeep is being executed, it runs the flushers:

246f4d3e62/src/world.py (L148-L150)

In the main limnoria script, it registers a flusher that saves the registry to disk:

246f4d3e62/src/scripts/limnoria.py (L243-L252)

When saving the registry to disk, the code instantiates the class with its default value to print it out in the file:

246f4d3e62/src/registry.py (L149-L159)

Instantiating the class calls `setValue()` by default:

246f4d3e62/src/registry.py (L347-L348)

supybot.protocols.http.proxy uses a custom type that changes global state when `setValue()` is called:

246f4d3e62/src/conf.py (L1416-L1432)


Fixed GH-1349.
2024-10-23 20:19:37 +02:00
..
2022-11-23 19:25:12 +01:00
2022-11-20 19:33:23 +01:00
2022-11-20 19:33:23 +01:00
2022-11-20 19:33:23 +01:00