Set user real name to untouched nickname

Users' true (global) names will be available in WHOIS output and in
clients that display real names in the chat view, etc.

See / resolves #155
This commit is contained in:
dgw 2018-10-11 00:16:16 -05:00
parent ba47eed85a
commit aeb95cec77
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ static void discord_handle_user(struct im_connection *ic, json_value *uinfo,
if (bu == NULL) {
imcb_add_buddy(ic, name, NULL);
imcb_rename_buddy(ic, name, json_o_str(uinfo, "username"));
if (set_getbool(&ic->acc->set, "never_offline") == TRUE) {
flags = BEE_USER_ONLINE | BEE_USER_AWAY;
if (set_getbool(&ic->acc->set, "friendship_mode") == FALSE) {