Added stanza hooks to test plugins
This commit is contained in:
@@ -2,7 +2,6 @@ import prof
|
||||
|
||||
import threading
|
||||
import time
|
||||
import sys
|
||||
|
||||
plugin_win = "Python Test"
|
||||
|
||||
@@ -422,10 +421,25 @@ def prof_on_message_stanza_send(stanza):
|
||||
_create_win()
|
||||
prof.win_show(plugin_win, "fired -> prof_on_message_stanza_send: " + stanza)
|
||||
|
||||
def prof_on_message_stanza_receive(stanza):
|
||||
_create_win()
|
||||
prof.win_show(plugin_win, "fired -> prof_on_message_stanza_receive: " + stanza)
|
||||
return True
|
||||
|
||||
def prof_on_presence_stanza_send(stanza):
|
||||
_create_win()
|
||||
prof.win_show(plugin_win, "fired -> prof_on_presence_stanza_send: " + stanza)
|
||||
|
||||
def prof_on_presence_stanza_receive(stanza):
|
||||
_create_win()
|
||||
prof.win_show(plugin_win, "fired -> prof_on_presence_stanza_receive: " + stanza)
|
||||
return True
|
||||
|
||||
def prof_on_iq_stanza_send(stanza):
|
||||
_create_win()
|
||||
prof.win_show(plugin_win, "fired -> prof_on_iq_stanza_send: " + stanza)
|
||||
|
||||
def prof_on_iq_stanza_receive(stanza):
|
||||
_create_win()
|
||||
prof.win_show(plugin_win, "fired -> prof_on_iq_stanza_receive: " + stanza)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user