Ensure close_server() clears the who/ison/userhost queues for the right server

close_server() should call clear_server_queues() on the server that's being
closed, not from_server.  This also lets us remove a few other calls to
clear_server_queues() that are right next to calls to close_server().
This commit is contained in:
Kevin Easton
2015-09-07 16:34:41 +10:00
parent 35b1a65f03
commit 8cc9684c76
4 changed files with 9 additions and 9 deletions

View File

@@ -1137,7 +1137,6 @@ BUILT_IN_COMMAND(reconnect_cmd)
/* close server will take care of the .reconnect variable */
set_server_reconnecting(from_server, 1);
close_server(from_server,(args && *args) ? args : "Reconnecting");
clean_server_queues(from_server);
window_check_servers(from_server);
servercmd(NULL, scommnd, empty_string, NULL);