changeset 13756:56fedad48814

[gaim-migrate @ 16167] Handle empty <show/> elements as "available," rather than NULL. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 09 May 2006 17:38:37 +0000
parents 2790a5f877f7
children 164932c4d050
files src/protocols/jabber/buddy.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c	Tue May 09 04:05:04 2006 +0000
+++ b/src/protocols/jabber/buddy.c	Tue May 09 17:38:37 2006 +0000
@@ -1190,8 +1190,9 @@
 		case JABBER_BUDDY_STATE_ONLINE:
 			return "available";
 		case JABBER_BUDDY_STATE_UNKNOWN:
+			return "available";
 		case JABBER_BUDDY_STATE_ERROR:
-			return NULL;
+			return "error";
 		case JABBER_BUDDY_STATE_UNAVAILABLE:
 			return "offline";
 	}