Mercurial > pidgin
comparison libgaim/prpl.c @ 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 | 45a939f70f1d |
children |
comparison
equal
deleted
inserted
replaced
15248:32c0e5e94aaa | 15249:4730550da5fa |
---|---|
114 if (login_time == 0) | 114 if (login_time == 0) |
115 login_time = time(NULL); | 115 login_time = time(NULL); |
116 | 116 |
117 presence = gaim_buddy_get_presence(buddy); | 117 presence = gaim_buddy_get_presence(buddy); |
118 | 118 |
119 gaim_presence_set_login_time(presence, login_time); | 119 if (gaim_presence_get_login_time(presence) != login_time) |
120 | 120 { |
121 gaim_signal_emit(gaim_blist_get_handle(), "buddy-got-login-time", buddy); | 121 gaim_presence_set_login_time(presence, login_time); |
122 | |
123 gaim_signal_emit(gaim_blist_get_handle(), "buddy-got-login-time", buddy); | |
124 } | |
122 } | 125 } |
123 | 126 |
124 void | 127 void |
125 gaim_prpl_got_user_status(GaimAccount *account, const char *name, | 128 gaim_prpl_got_user_status(GaimAccount *account, const char *name, |
126 const char *status_id, ...) | 129 const char *status_id, ...) |