diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 4f2ba8007..f00ec90e5 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -1022,7 +1022,13 @@ irc_config_reload (void *data, struct t_config_file *config_file) { next_server = ptr_server->next_server; - if (!ptr_server->reloaded_from_config) + /* + * if server existed before reload, but was not read in irc.conf: + * - if connected to server: display a warning, keep server in memory + * - if not connected: delete server + */ + if (ptr_server->reloading_from_config + && !ptr_server->reloaded_from_config) { if (ptr_server->is_connected) { |