1
0
forked from bip/bip

Fix for bad bug when client closes and server not connected with away_nick option.

This commit is contained in:
nohar 2006-04-23 16:38:57 +00:00
parent 35fa025792
commit e7a10369c3

View File

@ -1893,7 +1893,7 @@ void irc_client_close(struct link_client *ic)
log_client_disconnected(LINK(ic)->log);
unbind_from_link(ic);
if (LINK(ic)->l_clientc == 0) {
if (LINK(ic)->away_nick)
if (is && LINK(ic)->away_nick)
WRITE_LINE1(CONN(is), NULL, "NICK",
LINK(ic)->away_nick);
log_client_none_connected(LINK(ic)->log);