Mercurial > pidgin
diff libpurple/plugins/statenotify.c @ 25688:c5d2559d6e0d
In the state notify plugin, don't print out a status change if we get an update
on idle time.
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Sun, 01 Feb 2009 19:43:13 +0000 |
parents | 5ad07a31388e |
children | 13541e130064 |
line wrap: on
line diff
--- a/libpurple/plugins/statenotify.c Sun Feb 01 18:04:38 2009 +0000 +++ b/libpurple/plugins/statenotify.c Sun Feb 01 19:43:13 2009 +0000 @@ -71,9 +71,9 @@ void *data) { if (purple_prefs_get_bool("/plugins/core/statenotify/notify_idle")) { - if (idle) { + if (idle && !old_idle) { write_status(buddy, _("%s has become idle.")); - } else { + } else if (!idle && old_idle) { write_status(buddy, _("%s is no longer idle.")); } }