diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-11 05:48:37 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-11 05:48:37 +0000 |
commit | 1d7a8245caa16a4964857a059d832545228d8d37 (patch) | |
tree | 71d2ec5fa238268cf626f4d6ae0fe71cd477c55b /src/core | |
parent | 6d44620b4a0bcf52649dce18f3b42ecb39127ffc (diff) | |
download | irssi-1d7a8245caa16a4964857a059d832545228d8d37.zip |
Whops, didn't actually fix the connection_lost :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2308 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |