about summary refs log tree commit diff stats
path: root/apidocs/python/src
diff options
context:
space:
mode:
authorDustin Lagoy <dustin@lagoy.org>2021-04-28 09:17:02 -0400
committerDustin Lagoy <dustin@lagoy.org>2021-04-28 09:17:02 -0400
commited4d2fcfb2b99a049164c602feea7ccf4d0d8bea (patch)
tree9edc0cf6faf9f8a4459914f365a1ef4ed4cdd379 /apidocs/python/src
parent4a94c051a4425003ba9d215af3e7b2c1898f2cbb (diff)
downloadprofani-tty-ed4d2fcfb2b99a049164c602feea7ccf4d0d8bea.tar.gz
Add plugin prof_get_nick_from_roster function
Diffstat (limited to 'apidocs/python/src')
-rw-r--r--apidocs/python/src/prof.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/apidocs/python/src/prof.py b/apidocs/python/src/prof.py
index 6c80e2f2..aeec3604 100644
--- a/apidocs/python/src/prof.py
+++ b/apidocs/python/src/prof.py
@@ -253,6 +253,15 @@ def get_current_nick():
     pass
 
 
+def get_nick_from_roster(barejid):
+    """Retrieve a nickname from a barejid if it is in the roster.
+
+    :return: the users nickname e.g. ``"eddie"``, or ``None`` if the barejid is not in the roster.
+    :rtype: str
+    """
+    pass
+
+
 def get_current_occupants(): 
     """Retrieve nicknames of all occupants in a chat room, when in a chat room window.