Remove redundant code
Existance of print_name is already assured in the check above.
This commit is contained in:
parent
838e08a0e8
commit
46485a08c3
1 changed files with 2 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue