changeset 4842:654eb87fb336

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 20 Mar 2003 21:28:53 +0000
parents 7bdda84b5431
children 2308397639df
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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(_("<b>Logged In:</b> %s%s%s"), tstr, 
 				       caps ? _("\n<b>Capabilities:</b> ") : "", caps ? caps : "");
 		free(tstr);