Added room and private message received hooks to test plugins

This commit is contained in:
James Booth
2013-09-05 23:29:24 +01:00
parent 267b8eacde
commit 1fda33f5d5
3 changed files with 52 additions and 0 deletions

View File

@@ -24,6 +24,16 @@ def prof_on_message_received(jid, message):
prof.cons_alert()
return message + "[PYTHON]"
def prof_on_room_message_received(room, nick, message):
prof.cons_show("python-test: on_room_message_received, " + room + ", " + nick + ", " + message)
prof.cons_alert()
return message + "[PYTHON]"
def prof_on_private_message_received(room, nick, message):
prof.cons_show("python-test: on_private_message_received, " + room + ", " + nick + ", " + message)
prof.cons_alert()
return message + "[PYTHON]"
def prof_on_message_send(jid, message):
prof.cons_show("python-test: on_message_send, " + jid + ", " + message)
prof.cons_alert()