summaryrefslogtreecommitdiff
path: root/src/irc/irc-server.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-08-05 18:44:55 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-08-05 18:44:55 +0000
commitb2183ee3edbfceb66a5705fcfc601c6e72728049 (patch)
treecb763631df4039edbcb25777294dd80a3d7fd961 /src/irc/irc-server.c
parent22b80dec657f4353bd6aae69b16459ef2e50f1ba (diff)
downloadweechat-b2183ee3edbfceb66a5705fcfc601c6e72728049.zip
Fixed away after server disconnection (now away is set again when reconnecting) (bug #16359)
Diffstat (limited to 'src/irc/irc-server.c')
-rw-r--r--src/irc/irc-server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c
index e67d68798..ff3337868 100644
--- a/src/irc/irc-server.c
+++ b/src/irc/irc-server.c
@@ -108,6 +108,7 @@ server_init (t_irc_server *server)
server->reconnect_start = 0;
server->reconnect_join = 0;
server->is_away = 0;
+ server->away_message = NULL;
server->away_time = 0;
server->lag = 0;
server->lag_check_time.tv_sec = 0;
@@ -323,6 +324,8 @@ server_destroy (t_irc_server *server)
free (server->nick);
if (server->nick_modes)
free (server->nick_modes);
+ if (server->away_message)
+ free (server->away_message);
if (server->channels)
channel_free_all (server);
}
@@ -1980,6 +1983,7 @@ server_print_log (t_irc_server *server)
weechat_log_printf (" reconnect_start . . : %ld\n", server->reconnect_start);
weechat_log_printf (" reconnect_join. . . : %d\n", server->reconnect_join);
weechat_log_printf (" is_away . . . . . . : %d\n", server->is_away);
+ weechat_log_printf (" away_message. . . . : '%s'\n", server->away_message);
weechat_log_printf (" away_time . . . . . : %ld\n", server->away_time);
weechat_log_printf (" lag . . . . . . . . : %d\n", server->lag);
weechat_log_printf (" lag_check_time. . . : tv_sec:%d, tv_usec:%d\n",