comparison src/protocols/jabber/buddy.c @ 11540:9ddda2a86f50

[gaim-migrate @ 13795] Changes I should have made when I removed GAIM_PRESENCE_TYPE_ONLINE or whatever it was committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 14 Sep 2005 03:08:50 +0000
parents c9b815aeddc1
children 828802f2251b
comparison
equal deleted inserted replaced
11539:5a2c38d33eb4 11540:9ddda2a86f50
1100 } 1100 }
1101 1101
1102 JabberBuddyState jabber_buddy_status_id_get_state(const char *id) { 1102 JabberBuddyState jabber_buddy_status_id_get_state(const char *id) {
1103 if(!id) 1103 if(!id)
1104 return JABBER_BUDDY_STATE_UNKNOWN; 1104 return JABBER_BUDDY_STATE_UNKNOWN;
1105 if(!strcmp(id, "online")) 1105 if(!strcmp(id, "available"))
1106 return JABBER_BUDDY_STATE_ONLINE; 1106 return JABBER_BUDDY_STATE_ONLINE;
1107 if(!strcmp(id, "chat")) 1107 if(!strcmp(id, "chat"))
1108 return JABBER_BUDDY_STATE_CHAT; 1108 return JABBER_BUDDY_STATE_CHAT;
1109 if(!strcmp(id, "away")) 1109 if(!strcmp(id, "away"))
1110 return JABBER_BUDDY_STATE_AWAY; 1110 return JABBER_BUDDY_STATE_AWAY;
1129 case JABBER_BUDDY_STATE_XA: 1129 case JABBER_BUDDY_STATE_XA:
1130 return "xa"; 1130 return "xa";
1131 case JABBER_BUDDY_STATE_DND: 1131 case JABBER_BUDDY_STATE_DND:
1132 return "dnd"; 1132 return "dnd";
1133 case JABBER_BUDDY_STATE_ONLINE: 1133 case JABBER_BUDDY_STATE_ONLINE:
1134 return "online"; 1134 return "available";
1135 case JABBER_BUDDY_STATE_UNKNOWN: 1135 case JABBER_BUDDY_STATE_UNKNOWN:
1136 case JABBER_BUDDY_STATE_ERROR: 1136 case JABBER_BUDDY_STATE_ERROR:
1137 return NULL; 1137 return NULL;
1138 case JABBER_BUDDY_STATE_UNAVAILABLE: 1138 case JABBER_BUDDY_STATE_UNAVAILABLE:
1139 return "offline"; 1139 return "offline";