summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 8c3f586d3..162f8d9fc 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -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)
{