diff options
author | Guillaume BROGI <guillaume.brogi@yahoo.com> | 2014-11-20 17:01:07 +0100 |
---|---|---|
committer | Guillaume BROGI <guillaume.brogi@yahoo.com> | 2014-11-20 17:01:07 +0100 |
commit | f0a6e5f82a909b5789dfdfa4928ad3d8c4b078a3 (patch) | |
tree | a56714eae4a215edd345f5d73369ccef45b6e75f /src | |
parent | 688fc817dd9958f66e3be603dd0ee8ecc97d649d (diff) | |
download | irssi-f0a6e5f82a909b5789dfdfa4928ad3d8c4b078a3.zip |
Correctly parse unix sockets servers in the config
Diffstat (limited to 'src')
-rw-r--r-- | src/core/servers-setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c index 0819ff1a..27d9f1f0 100644 --- a/src/core/servers-setup.c +++ b/src/core/servers-setup.c @@ -122,6 +122,9 @@ static void server_setup_fill(SERVER_CONNECT_REC *conn, conn->address = g_strdup(address); if (port > 0) conn->port = port; + if (strchr(address, '/') != NULL) + conn->unix_socket = TRUE; + if (!conn->nick) conn->nick = g_strdup(settings_get_str("nick")); conn->username = g_strdup(settings_get_str("user_name")); conn->realname = g_strdup(settings_get_str("real_name")); |