libpurple/plugins/statenotify.c

branch
cpw.malu.xmpp.idle
changeset 26045
12e925b9012a
parent 25870
ccb76c75d39f
parent 25833
9cdd935e0aba
child 32438
dc8991868906
child 32617
c74b4bd27e37
--- a/libpurple/plugins/statenotify.c	Mon Mar 02 16:34:05 2009 +0000
+++ b/libpurple/plugins/statenotify.c	Mon Mar 02 21:25:31 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."));
 		}
 	}

mercurial