summaryrefslogtreecommitdiff
path: root/src/common/completion.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/completion.c')
-rw-r--r--src/common/completion.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/completion.c b/src/common/completion.c
index f4fa2a286..22f7f868a 100644
--- a/src/common/completion.c
+++ b/src/common/completion.c
@@ -230,6 +230,16 @@ completion_build_list (t_completion *completion, void *channel)
#endif
return;
}
+ if (ascii_strcasecmp (completion->base_command, "history") == 0)
+ {
+ if (completion->base_command_arg == 1)
+ weelist_add (&completion->completion_list,
+ &completion->last_completion,
+ "clear");
+ else
+ completion_stop (completion);
+ return;
+ }
if (ascii_strcasecmp (completion->base_command, "ignore") == 0)
{
/* arg 1: nicks of current channel and "*" */