# HG changeset patch # User Mark Doliner # Date 1048195733 0 # Node ID 654eb87fb3364d812048fc000ff2178e71cddaeb # Parent 7bdda84b5431f08ea76452abbc735aa08fedbfe3 [gaim-migrate @ 5167] I noticed that if aim doesn't send us the little thingy telling us when we've signed on, this would screw up. SO, this is a little workaround type thing. And also, your mom! committer: Tailor Script diff -r 7bdda84b5431 -r 654eb87fb336 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Thu Mar 20 21:13:07 2003 +0000 +++ b/src/protocols/oscar/oscar.c Thu Mar 20 21:28:53 2003 +0000 @@ -2998,7 +2998,8 @@ if (bi) { gchar *yay; char *caps = caps_string(bi->caps); - char *tstr = sec_to_text(time(NULL) - bi->signon + gc->login_time_official - gc->login_time); + char *tstr = sec_to_text(time(NULL) - bi->signon + + (gc->login_time_official ? gc->login_time_official - gc->login_time : 0)); yay = g_strdup_printf(_("Logged In: %s%s%s"), tstr, caps ? _("\nCapabilities: ") : "", caps ? caps : ""); free(tstr);