mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
irc: keep spaces at the end of /topic command arguments
This commit is contained in:
@@ -8071,7 +8071,7 @@ irc_command_init ()
|
||||
WEECHAT_CMD_ARGS_DESC(
|
||||
N_("target: query time from specified server")),
|
||||
NULL, &irc_command_time, NULL, NULL);
|
||||
weechat_hook_command (
|
||||
ptr_hook = weechat_hook_command (
|
||||
"topic",
|
||||
N_("get/set channel topic"),
|
||||
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */
|
||||
@@ -8081,6 +8081,7 @@ irc_command_init ()
|
||||
N_("topic: new topic"),
|
||||
N_("raw[-delete]: delete channel topic")),
|
||||
"%(irc_channel_topic)|-delete", &irc_command_topic, NULL, NULL);
|
||||
IRC_COMMAND_KEEP_SPACES;
|
||||
weechat_hook_command (
|
||||
"trace",
|
||||
N_("find the route to specific server"),
|
||||
|
||||
@@ -563,6 +563,8 @@ irc_completion_channel_topic_cb (const void *pointer, void *data,
|
||||
(void) data;
|
||||
(void) completion_item;
|
||||
|
||||
weechat_completion_set (completion, "add_space", "0");
|
||||
|
||||
if (ptr_channel && ptr_channel->topic && ptr_channel->topic[0])
|
||||
{
|
||||
if (irc_server_strncasecmp (ptr_server, ptr_channel->topic,
|
||||
|
||||
Reference in New Issue
Block a user