mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Merge pull request #178 from guiniol/master
Correctly parse unix sockets servers in the config
This commit is contained in:
commit
c01e026c73
@ -253,6 +253,9 @@ static void sig_reconnect(SERVER_REC *server)
|
||||
conn->port = server->connrec->port;
|
||||
conn->password = g_strdup(server->connrec->password);
|
||||
|
||||
if (strchr(conn->address, '/') != NULL)
|
||||
conn->unix_socket = TRUE;
|
||||
|
||||
server_reconnect_add(conn, (server->connect_time == 0 ? time(NULL) :
|
||||
server->connect_time) + reconnect_time);
|
||||
server_connect_unref(conn);
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user