Skip to content

Commit

Permalink
relay: add protocol "api" in completion of command "/relay add"
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed May 12, 2024
1 parent 539a51f commit 8de2a36
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/plugins/relay/relay-completion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8de2a36

Please sign in to comment.