summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-12-17 18:42:27 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-12-17 18:42:27 +0100
commitd3a37ea948c4c74e1c32267c6c4701475ff87a5a (patch)
tree8c38628eb4e37df0be5f292fe706e16a89e7fcbf /src/core
parent034b216eeef2efbf91edafdb60d3e3ee48d72947 (diff)
downloadweechat-d3a37ea948c4c74e1c32267c6c4701475ff87a5a.zip
core: display an error and do nothing for command "/unset *"
Diffstat (limited to 'src/core')
-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)
{