From 126a8259248e477e3c9d8affd0f22b3197b790ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 25 Mar 2018 08:38:42 +0200 Subject: irc: add completion with modelist numbers for commands /unban and /unquiet --- src/plugins/irc/irc-command.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/plugins/irc/irc-command.c') diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index aa0331828..65c48fd17 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -6975,17 +6975,21 @@ irc_command_init () weechat_hook_command ( "unban", N_("unban nicks or hosts"), - N_("[] [...]"), + N_("[] | [|...]"), N_("channel: channel name\n" - " nick: nick, host or ban number"), - "%(irc_modelist:b)", &irc_command_unban, NULL, NULL); + " nick: nick or host\n" + " number: ban number (as displayed in output of /ban)"), + "%(irc_modelist_masks:b)|%(irc_modelist_numbers:b)", + &irc_command_unban, NULL, NULL); weechat_hook_command ( "unquiet", N_("unquiet nicks or hosts"), - N_("[] [...]"), + N_("[] | [|...]"), N_("channel: channel name\n" - " nick: nick, host or quiet number"), - "%(irc_modelist:q)", &irc_command_unquiet, NULL, NULL); + " nick: nick or host\n" + " number: quiet number (as displayed in output of /quiet)"), + "%(irc_modelist_masks:q)|%(irc_modelist_numbers:q)", + &irc_command_unquiet, NULL, NULL); weechat_hook_command ( "userhost", N_("return a list of information about nicks"), -- cgit v1.2.3