Updated prof_init hook args
This commit is contained in:
@@ -303,12 +303,16 @@ def timed_callback():
|
||||
_create_win()
|
||||
prof.win_show(plugin_win, "timed -> timed_callback called")
|
||||
|
||||
def prof_init(version, status):
|
||||
def prof_init(version, status, account_name, fulljid):
|
||||
t = threading.Thread(target=_inc_counter)
|
||||
t.daemon = True
|
||||
t.start()
|
||||
|
||||
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)
|
||||
else:
|
||||
prof.win_show(plugin_win, "fired -> prof_init: " + version + ", " + status)
|
||||
|
||||
synopsis = [
|
||||
"/python-test consalert",
|
||||
|
||||
@@ -462,12 +462,20 @@ timed_callback(void)
|
||||
}
|
||||
|
||||
void
|
||||
prof_init(const char * const version, const char * const status)
|
||||
prof_init(const char * const version, const char * const status, const char *const account_name, const char *const fulljid)
|
||||
{
|
||||
pthread_create(&worker_thread, NULL, inc_counter, NULL);
|
||||
|
||||
prof_win_create(plugin_win, handle_win_input);
|
||||
|
||||
char buf[256];
|
||||
if (account_name != NULL && fulljid != NULL) {
|
||||
sprintf(buf, "fired -> prof_init: %s, %s, %s, %s", version, status, account_name, fulljid);
|
||||
} else {
|
||||
sprintf(buf, "fired -> prof_init: %s, %s", version, status);
|
||||
}
|
||||
prof_win_show(plugin_win, buf);
|
||||
|
||||
const char *synopsis[] = {
|
||||
"/c-test consalert",
|
||||
"/c-test consshow <message>",
|
||||
|
||||
Reference in New Issue
Block a user