summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-05-12 22:16:14 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-05-12 22:16:14 +0200
commit8de2a36ac2ed2ff430ef629f6655cadf6845671a (patch)
tree2f92ef084a2f1b6759511ce7dc63181f14a8b4c7 /src/plugins/relay
parent539a51f9e155f4d1d21442c239f5c3e2f3c63e8b (diff)
downloadweechat-8de2a36ac2ed2ff430ef629f6655cadf6845671a.zip
relay: add protocol "api" in completion of command "/relay add"
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/relay-completion.c15
1 files changed, 12 insertions, 3 deletions
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",