1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Irssi didn't set the internal away reason when reconnecting to server while

being away. Patch by c0ffee.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3040 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-12-03 22:54:44 +00:00 committed by cras
parent 439818bcf8
commit 67d4550f21

View File

@ -68,8 +68,12 @@ static void sig_connected(IRC_SERVER_REC *server)
if (!IS_IRC_SERVER(server) || !server->connrec->reconnection)
return;
if (server->connrec->away_reason != NULL)
if (server->connrec->away_reason != NULL) {
irc_send_cmdv(server, "AWAY :%s", server->connrec->away_reason);
g_free(server->away_reason);
server->away_reason = g_strdup(server->connrec->away_reason);
}
}
static void event_nick_collision(IRC_SERVER_REC *server, const char *data)