mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Correctly parse unix sockets servers in the config
This commit is contained in:
parent
688fc817dd
commit
f0a6e5f82a
1 changed files with 3 additions and 0 deletions
|
|
@ -122,6 +122,9 @@ static void server_setup_fill(SERVER_CONNECT_REC *conn,
|
||||||
conn->address = g_strdup(address);
|
conn->address = g_strdup(address);
|
||||||
if (port > 0) conn->port = port;
|
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"));
|
if (!conn->nick) conn->nick = g_strdup(settings_get_str("nick"));
|
||||||
conn->username = g_strdup(settings_get_str("user_name"));
|
conn->username = g_strdup(settings_get_str("user_name"));
|
||||||
conn->realname = g_strdup(settings_get_str("real_name"));
|
conn->realname = g_strdup(settings_get_str("real_name"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue