summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-command.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-03-25 08:38:42 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-03-25 08:38:42 +0200
commit126a8259248e477e3c9d8affd0f22b3197b790ee (patch)
tree0971dbe1fb1b92f19e0602d0bbdefd82f3dafa37 /src/plugins/irc/irc-command.c
parent5793181ead97ca3de0e50c502bf0f74e873f3e7d (diff)
downloadweechat-126a8259248e477e3c9d8affd0f22b3197b790ee.zip
irc: add completion with modelist numbers for commands /unban and /unquiet
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r--src/plugins/irc/irc-command.c16
1 files changed, 10 insertions, 6 deletions
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_("[<channel>] <nick> [<nick>...]"),
+ N_("[<channel>] <nick>|<number> [<nick>|<number>...]"),
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_("[<channel>] <nick> [<nick>...]"),
+ N_("[<channel>] <nick>|<number> [<nick>|<number>...]"),
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"),