1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Also, if alternate_nick is "", don't go set it to connection record..

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2373 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-02 17:27:20 +00:00 committed by cras
parent feec7bfb62
commit 85b63bf546

View File

@ -50,7 +50,8 @@ static void sig_server_setup_fill_connect(IRC_SERVER_CONNECT_REC *conn)
if (!IS_IRC_SERVER_CONNECT(conn)) if (!IS_IRC_SERVER_CONNECT(conn))
return; return;
conn->alternate_nick = g_strdup(settings_get_str("alternate_nick")); conn->alternate_nick = *settings_get_str("alternate_nick") != '\0' ?
g_strdup(settings_get_str("alternate_nick")) : NULL;
conn->usermode = g_strdup(settings_get_str("usermode")); conn->usermode = g_strdup(settings_get_str("usermode"));
} }