1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

core: display a specific message when the value of option is unchanged after /set command

This commit is contained in:
Sébastien Helleu
2024-03-25 12:06:59 +01:00
parent a7f8c32797
commit 8482e14630
16 changed files with 88 additions and 22 deletions
+6 -4
View File
@@ -6721,10 +6721,12 @@ COMMAND_CALLBACK(set)
&ptr_option, NULL);
if (ptr_option)
{
command_set_display_option (ptr_option,
(ptr_option_before) ?
_("Option changed: ") :
_("Option created: "));
command_set_display_option (
ptr_option,
(ptr_option_before) ?
((rc == WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE) ?
_("Option unchanged: ") : _("Option changed: ")) :
_("Option created: "));
}
break;
}