diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-24 22:29:03 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:52 +0100 |
commit | 4b004a356aec12eb59fb4c5a208c21d3817ef9d7 (patch) | |
tree | 41ab637631d19f890afae937e42f03e8a339c1cd /slack/config.py | |
parent | ee9d976ff8d8910c091d1554dfa62ab28ad67509 (diff) | |
download | wee-slack-4b004a356aec12eb59fb4c5a208c21d3817ef9d7.tar.gz |
Add callbacks to global scope
Diffstat (limited to 'slack/config.py')
-rw-r--r-- | slack/config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/slack/config.py b/slack/config.py index 8584fca..a2ab654 100644 --- a/slack/config.py +++ b/slack/config.py @@ -7,6 +7,7 @@ import globals as G import weechat from api import SlackWorkspace from log import print_error +from util import get_callback_name class WeeChatColor(str): @@ -293,14 +294,14 @@ class SlackConfig: # See https://github.com/weechat/weechat/pull/1843 print("version", G.weechat_version) callback_write = ( - config_section_workspace_write_for_old_weechat_cb.__name__ + get_callback_name(config_section_workspace_write_for_old_weechat_cb) if G.weechat_version < 0x3080000 else "" ) self._section_workspace = WeeChatSection( self.weechat_config, "workspace", - callback_read=config_section_workspace_read_cb.__name__, + callback_read=get_callback_name(config_section_workspace_read_cb), callback_write=callback_write, ) self._workspace_default = SlackConfigSectionWorkspace( |