changeset 25965: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 03541b3adb38
children 7741759e741a 65f2c84f122f
files libpurple/plugins/statenotify.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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."));
 		}
 	}