| 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; |