1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

core: display a warning if the config version read is newer than supported version

This commit is contained in:
Sébastien Helleu
2023-03-08 18:39:57 +01:00
parent 03e6d4563f
commit a0c3fbbde9
+11
View File
@@ -3515,6 +3515,17 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
else
{
config_file->version_read = version;
if (config_file->version_read > config_file->version)
{
gui_chat_printf (NULL,
_("%sWarning: %s, version read (%d) is "
"newer than supported version (%d), "
"options may be broken!"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
filename,
config_file->version_read,
config_file->version);
}
}
continue;
}