libpurple/protocols/bonjour/buddy.c

changeset 25129
476e928f6127
parent 24562
22ed1e1ef32f
child 25132
3e760a7a5981
equal deleted inserted replaced
25085:1f1e715da7b9 25129:476e928f6127
159 159
160 buddy->proto_data = bonjour_buddy; 160 buddy->proto_data = bonjour_buddy;
161 name = purple_buddy_get_name(buddy); 161 name = purple_buddy_get_name(buddy);
162 162
163 /* Create the alias for the buddy using the first and the last name */ 163 /* Create the alias for the buddy using the first and the last name */
164 if (bonjour_buddy->nick) 164 if (bonjour_buddy->nick && *bonjour_buddy->nick)
165 serv_got_alias(purple_account_get_connection(account), name, bonjour_buddy->nick); 165 serv_got_alias(purple_account_get_connection(account), name, bonjour_buddy->nick);
166 else { 166 else {
167 gchar *alias = NULL; 167 gchar *alias = NULL;
168 const char *first, *last; 168 const char *first, *last;
169 first = bonjour_buddy->first; 169 first = bonjour_buddy->first;

mercurial