about summary refs log tree commit diff stats
path: root/apidocs/python
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2017-01-18 22:46:29 +0000
committerJames Booth <boothj5@gmail.com>2017-01-18 22:46:29 +0000
commitfccf56be1059a2c254b9ed08fc385ee4e0513dee (patch)
treefd0a65c17b7a5e1186643c2f5a7b1aceab979998 /apidocs/python
parent70e831e08b803fe894296fc1f6b0f4157198a833 (diff)
downloadprofani-tty-fccf56be1059a2c254b9ed08fc385ee4e0513dee.tar.gz
Add prof.encryption_reset to Plugins API
issue #885
Diffstat (limited to 'apidocs/python')
-rw-r--r--apidocs/python/src/prof.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/apidocs/python/src/prof.py b/apidocs/python/src/prof.py
index 69d5aaea..22488f4b 100644
--- a/apidocs/python/src/prof.py
+++ b/apidocs/python/src/prof.py
@@ -262,6 +262,14 @@ def get_current_occupants():
     pass
 
 
+def get_room_nick(barejid):
+    """Retrieve current nickname used in chat room.
+
+    :return: Room nickname.
+    :rtype: str
+    """
+
+
 def current_win_is_console():
     """Determine whether or not the Console window is currently focussed.
 
@@ -597,6 +605,7 @@ def incoming_message(barejid, resource, message):
         prof.incoming_message("bob@server.org", "laptop", "Hello there")
     """
 
+
 def disco_add_feature(feature):
     """Add a service discovery feature the list supported by Profanity.\n
     If a session is already connected, a presence update will be sent to allow any client/server caches to update their feature list for Profanity
@@ -609,3 +618,15 @@ def disco_add_feature(feature):
         prof.disco_add_feature("urn:xmpp:omemo:0:devicelist+notify")
     """
     pass
+
+
+def encryption_reset(barejid):
+    """End any encrypted session with the specified user
+
+    :param barejid: Jabber ID of the recipient
+    :type barejid: str or unicode
+
+    Example:
+    ::
+        prof.encryption_reset("alice@server.org")
+    """