Mercurial > pidgin.yaz
comparison libpurple/protocols/bonjour/buddy.c @ 24654:efe41c4e0df0
Fix Bonjour to better deal with buddy values set to the empty string.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 08 Dec 2008 05:20:44 +0000 |
parents | fe7504f465a2 |
children | 367b3ddcf5c3 |
comparison
equal
deleted
inserted
replaced
24612:1f9700b825a4 | 24654:efe41c4e0df0 |
---|---|
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; |