diff options
author | Ben Kelly <bk@ancilla.ca> | 2016-12-22 23:46:49 -0500 |
---|---|---|
committer | Ben Kelly <btk@google.com> | 2016-12-23 00:10:46 -0500 |
commit | c48a9a48aca052f78a53b2b6c6c7a901c45a8f85 (patch) | |
tree | 2cf649b6e144382aa704819a9871b785e4c70db3 /docs/slack.gif | |
parent | c5068817d48b02852630ca2e21a61316fe1a6f36 (diff) | |
download | wee-slack-c48a9a48aca052f78a53b2b6c6c7a901c45a8f85.tar.gz |
Refactor the way settings work
All the per-setting globals are replaced with a single global object,
'config'; its attrs are the weechat settings. They're automatically
updated on config change, and the setting names and defaults are
specified as part of a map in the PluginConfig class definition.
To add a new setting, add the setting name and default to
PluginConfig.settings, and if it's not a boolean, add an appropriate
PluginConfig.get_<name> method as well.
Signed-off-by: Ben Kelly <bk@ancilla.ca>
Diffstat (limited to 'docs/slack.gif')
0 files changed, 0 insertions, 0 deletions