Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 4841:7bdda84b5431
[gaim-migrate @ 5166]
This fixes the bug where people would show up as being online for 47
thousand days in their mouse overs. To all the people that experienced
this bug: Set the clocks on your computers correctly, foos.
And now some quotes:
Good versus evil equals confrontation
Good turned to evil and a push comes to shove, we must save the world
with an act of love
"How could you not love it? This buddy list is endangering marriages."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 20 Mar 2003 21:13:07 +0000 |
parents | 60d8c5ad77f9 |
children | 654eb87fb336 |
comparison
equal
deleted
inserted
replaced
4840:a701ef925850 | 4841:7bdda84b5431 |
---|---|
2996 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name)); | 2996 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name)); |
2997 | 2997 |
2998 if (bi) { | 2998 if (bi) { |
2999 gchar *yay; | 2999 gchar *yay; |
3000 char *caps = caps_string(bi->caps); | 3000 char *caps = caps_string(bi->caps); |
3001 char *tstr = sec_to_text(time(NULL) - bi->signon); | 3001 char *tstr = sec_to_text(time(NULL) - bi->signon + gc->login_time_official - gc->login_time); |
3002 yay = g_strdup_printf(_("<b>Logged In:</b> %s%s%s"), tstr, | 3002 yay = g_strdup_printf(_("<b>Logged In:</b> %s%s%s"), tstr, |
3003 caps ? _("\n<b>Capabilities:</b> ") : "", caps ? caps : ""); | 3003 caps ? _("\n<b>Capabilities:</b> ") : "", caps ? caps : ""); |
3004 free(tstr); | 3004 free(tstr); |
3005 return yay; | 3005 return yay; |
3006 } else { | 3006 } else { |
3517 va_start(ap, fr); | 3517 va_start(ap, fr); |
3518 info = va_arg(ap, aim_userinfo_t *); | 3518 info = va_arg(ap, aim_userinfo_t *); |
3519 va_end(ap); | 3519 va_end(ap); |
3520 | 3520 |
3521 gc->evil = info->warnlevel/10; | 3521 gc->evil = info->warnlevel/10; |
3522 /* gc->correction_time = (info->onlinesince - gc->login_time); */ | 3522 |
3523 if (info->onlinesince) | |
3524 gc->login_time_official = info->onlinesince; | |
3523 | 3525 |
3524 return 1; | 3526 return 1; |
3525 } | 3527 } |
3526 | 3528 |
3527 static int gaim_connerr(aim_session_t *sess, aim_frame_t *fr, ...) { | 3529 static int gaim_connerr(aim_session_t *sess, aim_frame_t *fr, ...) { |