1
0
forked from bip/bip

fix away_nick not used at server connect when follow_nick is defined

This commit is contained in:
kyoshiro 2005-08-23 08:53:13 +00:00
parent 04e17c8359
commit b3aa4c73dc

View File

@ -1689,7 +1689,8 @@ static void irc_server_startup(struct link_server *ircs)
free(nick);
nick = strdup(LINK(ircs)->away_nick);
}
if (!LINK(ircs)->follow_nick || nick == NULL) {
if ((!LINK(ircs)->follow_nick && !LINK(ircs)->away_nick)
|| nick == NULL) {
if (nick)
free(nick);
nick = strdup(LINK(ircs)->connect_nick);