From 3bf3f229281dc98c4c704b90fe109dbe751c1767 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 9 May 2007 11:14:59 +0000 Subject: Forget current nick when user manually disconnects from server --- src/irc/irc-server.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/irc') diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c index 5a4c25f2e..60b3e3c56 100644 --- a/src/irc/irc-server.c +++ b/src/irc/irc-server.c @@ -1958,6 +1958,13 @@ server_disconnect (t_irc_server *server, int reconnect) else server->reconnect_start = 0; + /* discard current nick if no reconnection asked */ + if (!reconnect && server->nick) + { + free (server->nick); + server->nick = NULL; + } + gui_window_redraw_buffer (gui_current_window->buffer); } -- cgit v1.2.3