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 /tests/scripts/python | |
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 'tests/scripts/python')
-rw-r--r-- | tests/scripts/python/testapi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py index 404278470..2fbf8370d 100644 --- a/tests/scripts/python/testapi.py +++ b/tests/scripts/python/testapi.py @@ -160,9 +160,9 @@ def completion_cb(data, completion_item, buf, completion): """Completion callback.""" check(data == 'completion_data') check(completion_item == 'SCRIPT_NAME') - check(weechat.hook_completion_get_string(completion, 'args') == 'w') - weechat.hook_completion_list_add(completion, 'word_completed', - 0, weechat.WEECHAT_LIST_POS_END) + check(weechat.completion_get_string(completion, 'args') == 'w') + weechat.completion_list_add(completion, 'word_completed', + 0, weechat.WEECHAT_LIST_POS_END) return weechat.WEECHAT_RC_OK |