Change nick to name in api to match convention
Change all instances of *get_nick_from_roster to *get_name_from_roster to match the convention of names in the roster itself.
This commit is contained in:
@@ -142,7 +142,7 @@ char* prof_get_current_nick(void);
|
||||
Retrieve the nickname for a given barejid if it is in the roster.
|
||||
@return the users nickname e.g. "eddie", or NULLL if the barejid is not in the roster.
|
||||
*/
|
||||
char* prof_get_nick_from_roster(const char *barejid);
|
||||
char* prof_get_name_from_roster(const char *barejid);
|
||||
|
||||
/**
|
||||
Retrieve nicknames of all occupants in a chat room, when in a chat room window.
|
||||
|
||||
@@ -253,7 +253,7 @@ def get_current_nick():
|
||||
pass
|
||||
|
||||
|
||||
def get_nick_from_roster(barejid):
|
||||
def get_name_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.
|
||||
|
||||
Reference in New Issue
Block a user