diff options
Diffstat (limited to 'src/plugins/relay/relay-network.c')
-rw-r--r-- | src/plugins/relay/relay-network.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-network.c b/src/plugins/relay/relay-network.c index 8b48edacb..b5305193a 100644 --- a/src/plugins/relay/relay-network.c +++ b/src/plugins/relay/relay-network.c @@ -57,6 +57,9 @@ relay_network_close_socket () { close (relay_network_sock); relay_network_sock = -1; + weechat_printf (NULL, + _("%s: socket closed"), + RELAY_PLUGIN_NAME); } } @@ -116,6 +119,9 @@ relay_network_init () relay_network_close_socket (); + if (!weechat_config_boolean (relay_config_network_enabled)) + return 1; + port_range = weechat_config_string (relay_config_network_listen_port_range); if (!port_range || !port_range[0]) { |