Remove redundant code

Existance of print_name is already assured in the check above.
This commit is contained in:
mjentsch 2015-12-29 15:28:57 +01:00
parent 838e08a0e8
commit 46485a08c3

View file

@ -115,9 +115,8 @@ static void update_user_handler (struct tgl_state *TLS, struct tgl_user *user, u
// the id isn't known to the lookup yet since the user is not in the buddy list. Add the id to the
// lookup to allow sending messages to this user based on the purple name.
if (user->print_name) {
tgp_blist_lookup_add (TLS, user->id, user->print_name);
}
tgp_blist_lookup_add (TLS, user->id, user->print_name);
} else {
// Keep the users name up-to-date. Changing the actual user name would imply making the history
// inacessible, therefore name changes should only affect the alias.