[gaim-migrate @ 5167]

Thu, 20 Mar 2003 21:28:53 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Thu, 20 Mar 2003 21:28:53 +0000
changeset 4842
b89b7d818854
parent 4841
65cf779d4f49
child 4843
327bb7d4e2e9

[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!

src/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- 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);

mercurial