diff options
author | James Booth <boothj5@gmail.com> | 2016-07-29 00:27:14 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-07-29 00:27:26 +0100 |
commit | a308f5e4f11d2c30109a2587f4f7a2d5d487f01a (patch) | |
tree | 70d8ed7757e1a5558f304a2b4cd0ca09fd149899 /apidocs/python | |
parent | 1bc694184748bef4adaeed5572cd03518fefe061 (diff) | |
download | profani-tty-a308f5e4f11d2c30109a2587f4f7a2d5d487f01a.tar.gz |
Add python plugin hook docs
Diffstat (limited to 'apidocs/python')
-rw-r--r-- | apidocs/python/src/plugin.py | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/apidocs/python/src/plugin.py b/apidocs/python/src/plugin.py new file mode 100644 index 00000000..ab7df146 --- /dev/null +++ b/apidocs/python/src/plugin.py @@ -0,0 +1,119 @@ +""" +Profanity plugin Hooks +""" + +def prof_init(version, status, account_name, fulljid): + pass + + +def prof_on_start(): + pass + + +def prof_on_shutdown(): + pass + + +def prof_on_unload(): + pass + + +def prof_on_connect(account_name, fulljid): + pass + + +def prof_on_disconnect(account_name, fulljid): + pass + + +def prof_pre_chat_message_display(jid, message): + pass + + +def prof_post_chat_message_display(jid, message): + pass + + +def prof_pre_chat_message_send(jid, message): + pass + + +def prof_post_chat_message_send(jid, message): + pass + + +def prof_pre_room_message_display(room, nick, message): + pass + + +def prof_post_room_message_display(room, nick, message): + pass + + +def prof_pre_room_message_send(room, message): + pass + + +def prof_post_room_message_send(room, message): + pass + + +def prof_on_room_history_message(room, nick, message, timestamp): + pass + + +def prof_pre_priv_message_display(room, nick, message): + pass + + +def prof_post_priv_message_display(room, nick, message): + pass + + +def prof_pre_priv_message_send(room, nick, message): + pass + + +def prof_post_priv_message_send(room, nick, message): + pass + + +def prof_on_message_stanza_send(stanza): + pass + + +def prof_on_message_stanza_receive(stanza): + pass + + +def prof_on_presence_stanza_send(stanza): + pass + + +def prof_on_presence_stanza_receive(stanza): + pass + + +def prof_on_iq_stanza_send(stanza): + pass + + +def prof_on_iq_stanza_receive(stanza): + pass + + +def prof_on_contact_offline(barejid, resource, status): + pass + + +def prof_on_contact_presence(barejid, resource, presence, status, priority): + pass + + +def prof_on_chat_win_focus(barejid): + pass + + +def prof_on_room_win_focus(roomjid): + pass + |