diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-27 00:11:06 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-27 00:11:06 +0000 |
commit | 4d3e76eb3e1523127f8bfcc04be958fc70dbc6e9 (patch) | |
tree | 19bed5e613be4ceecb79f00f745d1b4fda72b5bc /src/irc/irc-server.c | |
parent | c48ee3cd73debc70aba550e20181606652574cad (diff) | |
download | weechat-4d3e76eb3e1523127f8bfcc04be958fc70dbc6e9.zip |
Fixed bug in message parser when connected to many servers
Diffstat (limited to 'src/irc/irc-server.c')
-rw-r--r-- | src/irc/irc-server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c index 8ad22e8b5..1581bf931 100644 --- a/src/irc/irc-server.c +++ b/src/irc/irc-server.c @@ -832,12 +832,14 @@ server_disconnect (t_irc_server *server, int reconnect) close (server->server_write); server->server_write = -1; - if (server->sock4 >= 0) close (server->sock4); server->sock4 = -1; + if (server->unterminated_message) + free (server->unterminated_message); server->unterminated_message = NULL; + server->is_connected = 0; server->is_away = 0; server->away_time = 0; |