mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Never fallback to alternate_nick if nick is set in ircnet settings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@559 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3a373c2160
commit
5acdedd25a
@ -142,6 +142,7 @@ create_addr_conn(const char *address, int port, const char *password,
|
|||||||
if (ircnet == NULL) return conn;
|
if (ircnet == NULL) return conn;
|
||||||
|
|
||||||
if (ircnet->nick && !(nick && *nick)) {
|
if (ircnet->nick && !(nick && *nick)) {
|
||||||
|
g_free_and_null(conn->alternate_nick);
|
||||||
g_free(conn->nick);
|
g_free(conn->nick);
|
||||||
conn->nick = g_strdup(ircnet->nick);;
|
conn->nick = g_strdup(ircnet->nick);;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user