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

core: display an error and do nothing for command "/unset *"

This commit is contained in:
Sebastien Helleu
2011-12-17 18:42:27 +01:00
parent 034b216eee
commit d3a37ea948
11 changed files with 58 additions and 11 deletions
+7
View File
@@ -4489,6 +4489,13 @@ COMMAND_CALLBACK(unset)
if (argc >= 2)
{
if (strcmp (argv_eol[1], "*") == 0)
{
gui_chat_printf (NULL,
_("%sReset of all options is not allowed"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_OK;
}
for (ptr_config = config_files; ptr_config;
ptr_config = ptr_config->next_config)
{