comparison libpurple/plugins/statenotify.c @ 26987:cd78ea46e9bd

merge of '7c614b09b72037ebd86c03fbbeac7794a155547b' and 'af18689b86389686230fc6ce83cbba52690ce0cb'
author Paul Aurich <paul@darkrain42.org>
date Sat, 30 May 2009 00:32:50 +0000
parents 13541e130064
children 1f68af4afe67 3828a61c44da
comparison
equal deleted inserted replaced
26986:42bff519973b 26987:cd78ea46e9bd
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