~tardypad/wee-most

1559821db3b1542a64bb19dcba05e5c46d87617d — Damien Tardy-Panis 4 months ago 3e0d1b1
Do not autoconnect to server if --no-connect CLI flag is used
1 files changed, 3 insertions(+), 1 deletions(-)

M main.py
M main.py => main.py +3 -1
@@ 40,7 40,9 @@ weechat.register(
wee_most.commands.setup_commands()
wee_most.completions.setup_completions()
config.setup()
wee_most.server.auto_connect()

if weechat.info_get("auto_connect", "") == '1':
    wee_most.server.auto_connect()

weechat.hook_modifier("input_text_for_buffer", "handle_multiline_message_cb", "")
weechat.hook_signal("buffer_switch", "buffer_switch_cb", "")