From a06be57eb7c2960ae60bba120378186a4d7c7a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 9 Oct 2014 21:20:43 +0200 Subject: [PATCH] irc: fix completion of commands /msg, /notice and /query --- ChangeLog.asciidoc | 1 + src/plugins/irc/irc-command.c | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index b1669e026..c48955323 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -34,6 +34,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] === Bugs fixed * core: fix translation of message displayed after /upgrade +* irc: fix completion of commands /msg, /notice and /query * irc: fix translation of CTCP PING reply (closes #137) * lua: add detection of Lua 5.2 * python: fix Python detection with Homebrew (closes #217) diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 93a391cc8..1e8a31b6f 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -6195,7 +6195,7 @@ irc_command_init () N_("server: send to this server (internal name)\n" "target: nick or channel (may be mask, '*' = current channel)\n" " text: text to send"), - "-server %(irc_servers)" + "-server %(irc_servers) %(nicks)" " || %(nicks)", &irc_command_msg, NULL); weechat_hook_command ( @@ -6220,7 +6220,9 @@ irc_command_init () N_("server: send to this server (internal name)\n" "target: nick or channel name\n" " text: text to send"), - "%(nicks)|-server %(irc_servers)", &irc_command_notice, NULL); + "-server %(irc_servers) %(nicks)" + " || %(nicks)", + &irc_command_notice, NULL); weechat_hook_command ( "notify", N_("add a notification for presence or away status of nicks on servers"), @@ -6289,7 +6291,9 @@ irc_command_init () N_("server: send to this server (internal name)\n" " nick: nick\n" " text: text to send"), - "%(nicks)|-server %(irc_servers)", &irc_command_query, NULL); + "-server %(irc_servers) %(nicks)" + " || %(nicks)", + &irc_command_query, NULL); weechat_hook_command ( "quiet", N_("quiet nicks or hosts"),