#57 Callback when the value of a config variable changes

open
nobody
None
4
2012-09-06
2011-07-01
Valentin Lorentz
No

Hello,

Some plugins may have a cache of the config (for example, when parsing it is a bit long), such as my modified LinkRelay plugin.
So, it would be nice for the plugin to be able to ask to be noticed when a configuration variable is editted.

Here is the patch in the core, to add such a callback: https://github.com/ProgVal/Limnoria/commit/d4693ebb6982b0e134673b7fdd0f053c36a62d4d
Here is my patch to LinkRelay that implements that (as an example use):
https://github.com/ProgVal/Supybot-plugins/commit/f4a62b8def079d540cec5ad380dece4f727eaa65 (original patch)
https://github.com/ProgVal/Supybot-plugins/commit/d584100c832d5f4fe2e827586c110ff60102ca2f (fix the patch)

Regards,
ProgVal

Discussion

  • I wanted to add a tarball of the patches, but Sourceforge doesn't want.