From 1c6a178932b8bdff70cb6a6ea4f1d4958f0239d4 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 30 Apr 2016 23:11:49 +0100 Subject: [PATCH] Added examples for prof_disco_add_feature --- tests/python-test.py | 2 ++ tests/test-c-plugin/test-c-plugin.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/python-test.py b/tests/python-test.py index 37f82a3..d1612fc 100644 --- a/tests/python-test.py +++ b/tests/python-test.py @@ -328,6 +328,8 @@ def prof_init(version, status, account_name, fulljid): t.daemon = True t.start() + prof.disco_add_feature("urn:xmpp:profanity:python_test_plugin"); + prof.win_create(plugin_win, _handle_win_input) if account_name and fulljid: prof.win_show(plugin_win, "fired -> prof_init: " + version + ", " + status + ", " + account_name + ", " + fulljid) diff --git a/tests/test-c-plugin/test-c-plugin.c b/tests/test-c-plugin/test-c-plugin.c index 69a1068..703b120 100644 --- a/tests/test-c-plugin/test-c-plugin.c +++ b/tests/test-c-plugin/test-c-plugin.c @@ -494,6 +494,8 @@ prof_init(const char * const version, const char * const status, const char *con { pthread_create(&worker_thread, NULL, inc_counter, NULL); + prof_disco_add_feature("urn:xmpp:profanity:c_test_plugin"); + prof_win_create(plugin_win, handle_win_input); char buf[256];