changeset 15249:4730550da5fa

[gaim-migrate @ 18039] Only emit the buddy-got-login-time signal if the login time actually changes in gaim_prpl_got_user_login_time() committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 21 Dec 2006 09:32:11 +0000
parents 32c0e5e94aaa
children 85aae248c589
files libgaim/prpl.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/prpl.c	Thu Dec 21 09:21:32 2006 +0000
+++ b/libgaim/prpl.c	Thu Dec 21 09:32:11 2006 +0000
@@ -116,9 +116,12 @@
 
 	presence = gaim_buddy_get_presence(buddy);
 
-	gaim_presence_set_login_time(presence, login_time);
+	if (gaim_presence_get_login_time(presence) != login_time)
+	{
+		gaim_presence_set_login_time(presence, login_time);
 
-	gaim_signal_emit(gaim_blist_get_handle(), "buddy-got-login-time", buddy);
+		gaim_signal_emit(gaim_blist_get_handle(), "buddy-got-login-time", buddy);
+	}
 }
 
 void