summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-05-12 21:29:31 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-05-12 21:39:22 +0200
commiteacc08f2e1a8354e885f34b1105d87ec43bca9da (patch)
tree6503abf5c4ae0d8b55a9045d8c5c1cf47338a2c7 /src/plugins
parentf273487688a3d3121fd25fec75fc8860887c443b (diff)
downloadweechat-eacc08f2e1a8354e885f34b1105d87ec43bca9da.zip
relay: fix section used when the unix relay does not start with "unix."
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/relay/relay-command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-command.c b/src/plugins/relay/relay-command.c
index 3f1a2bcfd..86db92456 100644
--- a/src/plugins/relay/relay-command.c
+++ b/src/plugins/relay/relay-command.c
@@ -225,8 +225,8 @@ relay_command_relay (const void *pointer, void *data,
if (weechat_strcasecmp (argv[1], "add") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "add");
- /* check if we're expecting a path or a port */
- unix_socket = (strncmp (argv[2], "unix.", 5) == 0) ? 1 : 0;
+ relay_server_get_protocol_args (argv[2], NULL, NULL, NULL,
+ &unix_socket, NULL, NULL);
rc = relay_config_create_option_port_path (
NULL, NULL,
relay_config_file,