comparison libpurple/plugins/statenotify.c @ 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 5ad07a31388e
children 13541e130064
comparison
equal deleted inserted replaced
25964:03541b3adb38 25965:c5d2559d6e0d
69 static void 69 static void
70 buddy_idle_changed_cb(PurpleBuddy *buddy, gboolean old_idle, gboolean idle, 70 buddy_idle_changed_cb(PurpleBuddy *buddy, gboolean old_idle, gboolean idle,
71 void *data) 71 void *data)
72 { 72 {
73 if (purple_prefs_get_bool("/plugins/core/statenotify/notify_idle")) { 73 if (purple_prefs_get_bool("/plugins/core/statenotify/notify_idle")) {
74 if (idle) { 74 if (idle && !old_idle) {
75 write_status(buddy, _("%s has become idle.")); 75 write_status(buddy, _("%s has become idle."));
76 } else { 76 } else if (!idle && old_idle) {
77 write_status(buddy, _("%s is no longer idle.")); 77 write_status(buddy, _("%s is no longer idle."));
78 } 78 }
79 } 79 }
80 } 80 }
81 81