Added examples for prof_disco_add_feature
This commit is contained in:
@@ -328,6 +328,8 @@ def prof_init(version, status, account_name, fulljid):
|
|||||||
t.daemon = True
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
|
prof.disco_add_feature("urn:xmpp:profanity:python_test_plugin");
|
||||||
|
|
||||||
prof.win_create(plugin_win, _handle_win_input)
|
prof.win_create(plugin_win, _handle_win_input)
|
||||||
if account_name and fulljid:
|
if account_name and fulljid:
|
||||||
prof.win_show(plugin_win, "fired -> prof_init: " + version + ", " + status + ", " + account_name + ", " + fulljid)
|
prof.win_show(plugin_win, "fired -> prof_init: " + version + ", " + status + ", " + account_name + ", " + fulljid)
|
||||||
|
|||||||
@@ -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);
|
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);
|
prof_win_create(plugin_win, handle_win_input);
|
||||||
|
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|||||||
Reference in New Issue
Block a user