utils: Align the user names in the nicklist.

This commit is contained in:
poljar (Damir Jelić) 2018-03-03 14:42:09 +01:00
parent d7485cc746
commit 4a7b200ba4

View file

@ -279,8 +279,10 @@ def add_user_to_nicklist(buf, user_id, user):
group_name = "002|v"
group = W.nicklist_search_group(buf, "", group_name)
prefix = user.prefix if user.prefix else " "
# TODO make it configurable so we can use a display name or user_id here
W.nicklist_add_nick(buf, group, user_id, user.nick_color, user.prefix,
W.nicklist_add_nick(buf, group, user_id, user.nick_color, prefix,
get_prefix_color(user.prefix), 1)