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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user