Mercurial > pidgin.yaz
diff src/savedstatuses.c @ 13244:c97c76d9d347
[gaim-migrate @ 15610]
Don't create duplicate primtive statuses without messages when using
the docklet, either. And I renamed a function and made it only look
for transient statuses.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 12 Feb 2006 16:30:57 +0000 |
parents | 22f8ed4e5294 |
children | 24ac8fc885b8 |
line wrap: on
line diff
--- a/src/savedstatuses.c Sun Feb 12 16:28:17 2006 +0000 +++ b/src/savedstatuses.c Sun Feb 12 16:30:57 2006 +0000 @@ -804,8 +804,8 @@ } GaimSavedStatus * -gaim_savedstatus_find_by_type_and_message(GaimStatusPrimitive type, - const char *message) +gaim_savedstatus_find_transient_by_type_and_message(GaimStatusPrimitive type, + const char *message) { GList *iter; GaimSavedStatus *status; @@ -813,7 +813,7 @@ for (iter = saved_statuses; iter != NULL; iter = iter->next) { status = (GaimSavedStatus *)iter->data; - if ((status->type == type) && + if ((status->type == type) && gaim_savedstatus_is_transient(status) && (((status->message == NULL) && (message == NULL)) || ((status->message != NULL) && (message != NULL) && !strcmp(status->message, message)))) {