changeset 12365:7f1c4630799c

[gaim-migrate @ 14669] Deal with idle and available oscar buddy status text correctly? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 06 Dec 2005 00:05:42 +0000
parents 6fd82071a7b8
children b0f518af7cad
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Mon Dec 05 23:54:34 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Dec 06 00:05:42 2005 +0000
@@ -7638,8 +7638,9 @@
 		else
 			ret = g_strdup(_("Offline"));
 	}
-	else if (gaim_presence_is_available(presence) && !strcmp(id, OSCAR_STATUS_ID_AVAILABLE))
+	else if (gaim_status_is_available(status) && !strcmp(id, OSCAR_STATUS_ID_AVAILABLE))
 	{
+		/* Available */
 		message = gaim_status_get_attr_string(status, "message");
 		if (message != NULL)
 		{
@@ -7647,8 +7648,9 @@
 			gaim_util_chrreplace(ret, '\n', ' ');
 		}
 	}
-	else if (!gaim_presence_is_available(presence) && !strcmp(id, OSCAR_STATUS_ID_AWAY))
+	else if (!gaim_status_is_available(status) && !strcmp(id, OSCAR_STATUS_ID_AWAY))
 	{
+		/* Away */
 		message = gaim_status_get_attr_string(status, "message");
 		if (message != NULL)
 		{