0
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-10-28 14:07:22 -04:00

Add plugin get_barejid_from_roster function

This commit is contained in:
Dustin Lagoy
2021-04-29 13:50:57 -04:00
parent 802442fffc
commit 2350a94c44
8 changed files with 53 additions and 0 deletions

View File

@@ -262,6 +262,15 @@ def get_name_from_roster(barejid):
pass
def get_barejid_from_roster(name):
"""Retrieve the barejid for a given nickname if it is in the roster.
:return: the users barejid e.g. "eddie@server.tld", or ``None`` if the nickname 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.