cpw.malu.xmpp.idle: 9dfa5921: In the state notify plugin, don't print ...

malu at pidgin.im malu at pidgin.im
Sun Feb 1 14:45:33 EST 2009


-----------------------------------------------------------------
Revision: 9dfa59217f19d3a885590a66ec6faca4e8b568a2
Ancestor: e03061bc553fddcd7e0a2be353df4ec445569ecc
Author: malu at pidgin.im
Date: 2009-02-01T19:43:13
Branch: im.pidgin.cpw.malu.xmpp.idle
URL: http://d.pidgin.im/viewmtn/revision/info/9dfa59217f19d3a885590a66ec6faca4e8b568a2

Modified files:
        libpurple/plugins/statenotify.c

ChangeLog: 

In the state notify plugin, don't print out a status change if we get an update
on idle time.

-------------- next part --------------
============================================================
--- libpurple/plugins/statenotify.c	2d008e7e0664234da55fbf781793cbb1d9be6554
+++ libpurple/plugins/statenotify.c	8d206ddfab4f07f7f90ef6485d2463273a1f8f34
@@ -71,9 +71,9 @@ buddy_idle_changed_cb(PurpleBuddy *buddy
                       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."));
 		}
 	}


More information about the Commits mailing list