diff src/gtkblist.c @ 10992:2bda44d66641

[gaim-migrate @ 12830] Try to get the prpl tooltip_text even if the buddy is logged off. This doesn't appear to cause any problems with the existing prpls, but I didn't exactly go over them with a fine tooth comb ... if you know what I mean. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 09 Jun 2005 04:42:27 +0000
parents e0d5038fbb7e
children 6417b2f5de4e
line wrap: on
line diff
--- a/src/gtkblist.c	Thu Jun 09 04:38:10 2005 +0000
+++ b/src/gtkblist.c	Thu Jun 09 04:42:27 2005 +0000
@@ -2760,7 +2760,7 @@
 
 		/* Logged In */
 		signon = gaim_presence_get_login_time(presence);
-		if (signon > 0)
+		if (GAIM_BUDDY_IS_ONLINE(b) && signon > 0)
 		{
 			tmp = gaim_str_seconds_to_string(time(NULL) - signon);
 			g_string_append_printf(str, _("\n<b>Logged In:</b> %s"), tmp);
@@ -2806,7 +2806,8 @@
 		if (!GAIM_BUDDY_IS_ONLINE(b)) {
 			g_string_append_printf(str, _("\n<b>Status:</b> Offline"));
 		}
-		else if (prpl_info && prpl_info->tooltip_text)
+
+		if (prpl_info && prpl_info->tooltip_text)
 		{
 			/* Additional text from the PRPL */
 			const char *end;