summaryrefslogtreecommitdiff
path: root/src/core/servers-setup.c
diff options
context:
space:
mode:
authorGeert Hauwaerts <geert@hauwaerts.be>2014-12-03 16:58:35 +0100
committerGeert Hauwaerts <geert@hauwaerts.be>2014-12-03 16:58:35 +0100
commitc01e026c73bb0a030e2d104e73db70c1b2795512 (patch)
tree31ae8fb04cdd9272a5b81891442ccfc0db575afa /src/core/servers-setup.c
parent8c477f498a2556a2bd37ac5afacc1fc999ea7153 (diff)
parent86d263dd7dd39bbb768284fb6b586d1979a821cd (diff)
downloadirssi-c01e026c73bb0a030e2d104e73db70c1b2795512.zip
Merge pull request #178 from guiniol/master
Correctly parse unix sockets servers in the config
Diffstat (limited to 'src/core/servers-setup.c')
-rw-r--r--src/core/servers-setup.c3
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"));