Mercurial > pidgin
comparison src/list.c @ 5210:39bb2a35f8d9
[gaim-migrate @ 5580]
alias is supposed to be NULL if it's blank
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 26 Apr 2003 05:31:26 +0000 |
parents | fefad67de2c7 |
children | 0241d6b6702d |
comparison
equal
deleted
inserted
replaced
5209:3a9d257628cb | 5210:39bb2a35f8d9 |
---|---|
203 struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; | 203 struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; |
204 struct gaim_conversation *conv; | 204 struct gaim_conversation *conv; |
205 | 205 |
206 g_free(buddy->alias); | 206 g_free(buddy->alias); |
207 | 207 |
208 buddy->alias = g_strdup(alias); | 208 if(alias && strlen(alias)) |
209 buddy->alias = g_strdup(alias); | |
210 else | |
211 buddy->alias = NULL; | |
209 | 212 |
210 if (ops) | 213 if (ops) |
211 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); | 214 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); |
212 | 215 |
213 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); | 216 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); |