Add pre chat and room message blocking

This commit is contained in:
James Booth
2017-01-22 18:08:29 +00:00
parent 7090f85d85
commit 83385cdbc0
9 changed files with 85 additions and 21 deletions

View File

@@ -106,7 +106,7 @@ def prof_pre_chat_message_send(barejid, message):
:param message: the message to be sent
:type barejid: str or unicode
:type message: str or unicode
:return: the new message to send, or ``None`` to preserve the original message
:return: the modified or original message to send, or ``None`` to cancel sending of the message
:rtype: str or unicode
"""
pass
@@ -158,7 +158,7 @@ def prof_pre_room_message_send(barejid, message):
:param message: the message to be sent
:type barejid: str or unicode
:type message: str or unicode
:return: the new message to send, or ``None`` to preserve the original message
:return: the modified or original message to send, or ``None`` to cancel sending of the message
:rtype: str or unicode
"""
pass
@@ -227,7 +227,7 @@ def prof_pre_priv_message_send(barejid, nick, message):
:type barejid: str or unicode
:type nick: str or unicode
:type message: str or unicode
:return: the new message to send, or ``None`` to preserve the original message
:return: the modified or original message to send, or ``None`` to cancel sending of the message
:rtype: str or unicode
"""
pass