Added stanza send hooks to C and Python exmaples

This commit is contained in:
James Booth
2016-03-26 15:51:43 +00:00
parent 609f0cb7fc
commit f4aa454397
2 changed files with 53 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import prof
import threading
import time
import sys
plugin_win = "Python Test"
@@ -417,3 +418,14 @@ def prof_post_priv_message_send(room, nick, message):
_create_win()
prof.win_show(plugin_win, "fired -> prof_post_priv_message_send: " + room + ", " + nick + ", " + message)
def prof_on_message_stanza_send(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_message_stanza_send: " + stanza)
def prof_on_presence_stanza_send(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_presence_stanza_send: " + stanza)
def prof_on_iq_stanza_send(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_iq_stanza_send: " + stanza)