From 1d7a8245caa16a4964857a059d832545228d8d37 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 11 Jan 2002 05:48:37 +0000 Subject: [PATCH] Whops, didn't actually fix the connection_lost :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2308 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/commands.c b/src/core/commands.c index 928d73a0..9d7cfe2d 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -863,7 +863,11 @@ static void parse_command(const char *command, int expand_aliases, signal_emit_id(signal_default_command, 3, command, server, item); } - if (server != NULL) server_unref(server); + if (server != NULL) { + if (server->connection_lost) + server_disconnect(server); + server_unref(server); + } current_command = oldcmd; g_free(cmd);