utils: Align the user names in the nicklist.
This commit is contained in:
parent
d7485cc746
commit
4a7b200ba4
1 changed files with 3 additions and 1 deletions
|
@ -279,8 +279,10 @@ def add_user_to_nicklist(buf, user_id, user):
|
||||||
group_name = "002|v"
|
group_name = "002|v"
|
||||||
|
|
||||||
group = W.nicklist_search_group(buf, "", group_name)
|
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
|
# 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)
|
get_prefix_color(user.prefix), 1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue