From 8de2a36ac2ed2ff430ef629f6655cadf6845671a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 12 May 2024 22:16:14 +0200 Subject: relay: add protocol "api" in completion of command "/relay add" --- src/plugins/relay/relay-completion.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/relay/relay-completion.c b/src/plugins/relay/relay-completion.c index 0c09693ce..8232d44d7 100644 --- a/src/plugins/relay/relay-completion.c +++ b/src/plugins/relay/relay-completion.c @@ -48,6 +48,7 @@ relay_completion_protocol_name_cb (const void *pointer, void *data, (void) buffer; (void) completion_item; + /* relay "irc" */ infolist = weechat_infolist_get ("irc_server", NULL, NULL); if (infolist) { @@ -75,13 +76,21 @@ relay_completion_protocol_name_cb (const void *pointer, void *data, weechat_infolist_free (infolist); } - /* TCP socket */ + /* relay "api" */ + weechat_completion_list_add (completion, "api", + 0, WEECHAT_LIST_POS_SORT); + weechat_completion_list_add (completion, "tls.api", + 0, WEECHAT_LIST_POS_SORT); + weechat_completion_list_add (completion, "unix.api", + 0, WEECHAT_LIST_POS_SORT); + weechat_completion_list_add (completion, "unix.tls.api", + 0, WEECHAT_LIST_POS_SORT); + + /* relay "weechat" */ weechat_completion_list_add (completion, "weechat", 0, WEECHAT_LIST_POS_SORT); weechat_completion_list_add (completion, "tls.weechat", 0, WEECHAT_LIST_POS_SORT); - - /* UNIX domain socket */ weechat_completion_list_add (completion, "unix.weechat", 0, WEECHAT_LIST_POS_SORT); weechat_completion_list_add (completion, "unix.tls.weechat", -- cgit v1.2.3