Merge pull request #177 from dgw/155-real-name

Set user real name to untouched nickname
This commit is contained in:
Artem Savkov 2018-10-11 17:01:59 +02:00 committed by GitHub
commit 8f7f57eaf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {