diff options
author | Timo Sirainen <cras@irssi.org> | 2002-12-03 22:54:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-12-03 22:54:44 +0000 |
commit | 67d4550f21bea59201a7b2600c7ce5ce7363b97d (patch) | |
tree | 5f2ff0c94da97a5802aec691fc284269dc0276e8 | |
parent | 439818bcf868daaf4c22d77469f830cb9a496e8b (diff) | |
download | irssi-67d4550f21bea59201a7b2600c7ce5ce7363b97d.zip |
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
-rw-r--r-- | src/irc/core/irc-servers-reconnect.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers-reconnect.c b/src/irc/core/irc-servers-reconnect.c index 07b39b88..c2649f5e 100644 --- a/src/irc/core/irc-servers-reconnect.c +++ b/src/irc/core/irc-servers-reconnect.c @@ -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) |