~tardypad/wee-most

9b1b617235f101d5f21bb769e3a771913858a3e2 — Damien Tardy-Panis 3 months ago 9d0406e
Move hook_focus out of commands file

Now in main alongside other diverse hooks
2 files changed, 1 insertions(+), 2 deletions(-)

M main.py
M wee_most/commands.py
M main.py => main.py +1 -0
@@ 46,6 46,7 @@ weechat.hook_modifier("input_text_for_buffer", "handle_multiline_message_cb", ""
weechat.hook_signal("buffer_switch", "buffer_switch_cb", "")
weechat.hook_timer(int(0.2 * 1000), 0, 0, "handle_queued_request_cb", "")
weechat.hook_config("irc.look.server_buffer", "config_server_buffer_cb", "")
weechat.hook_focus("chat", "channel_click_cb", "")

def shutdown_cb():
    wee_most.server.disconnect_all()

M wee_most/commands.py => wee_most/commands.py +0 -2
@@ 211,5 211,3 @@ def setup_commands():
        "mattermost_command_cb",
        ""
    )

    weechat.hook_focus("chat", "channel_click_cb", "")