diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-08 10:49:20 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-08 10:51:30 +0200 |
commit | 88bef0b1b127f67149060fe36757940379d7f4a3 (patch) | |
tree | 0f71e6a7c1b6c322013d78eb0f48aa753cd246af /src/plugins/alias | |
parent | b7765ed9606f17e83ccd9e6aa96a1ca88294952e (diff) | |
download | weechat-88bef0b1b127f67149060fe36757940379d7f4a3.zip |
core: rename functions hook_completion_{get_string|list_add} to completion_{get_string|list_add}
Old functions are kept for compatibility reasons.
Diffstat (limited to 'src/plugins/alias')
-rw-r--r-- | src/plugins/alias/alias-completion.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/alias/alias-completion.c b/src/plugins/alias/alias-completion.c index 9152f9e71..32dfffcd7 100644 --- a/src/plugins/alias/alias-completion.c +++ b/src/plugins/alias/alias-completion.c @@ -48,8 +48,8 @@ alias_completion_alias_cb (const void *pointer, void *data, for (ptr_alias = alias_list; ptr_alias; ptr_alias = ptr_alias->next_alias) { - weechat_hook_completion_list_add (completion, ptr_alias->name, - 0, WEECHAT_LIST_POS_SORT); + weechat_completion_list_add (completion, ptr_alias->name, + 0, WEECHAT_LIST_POS_SORT); } return WEECHAT_RC_OK; @@ -76,7 +76,7 @@ alias_completion_alias_value_cb (const void *pointer, void *data, (void) completion_item; (void) buffer; - args = weechat_hook_completion_get_string (completion, "args"); + args = weechat_completion_get_string (completion, "args"); if (args) { argv = weechat_string_split (args, " ", NULL, @@ -96,10 +96,10 @@ alias_completion_alias_value_cb (const void *pointer, void *data, ptr_alias = alias_search (alias_name); if (ptr_alias) { - weechat_hook_completion_list_add (completion, - ptr_alias->command, - 0, - WEECHAT_LIST_POS_BEGINNING); + weechat_completion_list_add (completion, + ptr_alias->command, + 0, + WEECHAT_LIST_POS_BEGINNING); } free (alias_name); } |