Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 11522:a26eb48d1953
[gaim-migrate @ 13770]
I removed the GAIM_STATUS_ONLINE primitive. Use GAIM_STATUS_AVAILABLE
instead. If the primitive is not GAIM_STATUS_OFFLINE, then the user
is online and the primitive could be GAIM_STATUS_AVAILABLE,
GAIM_STATUS_AWAY, etc.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 12 Sep 2005 06:04:27 +0000 |
parents | 88d504770c60 |
children | 5e3f07172dab |
comparison
equal
deleted
inserted
replaced
11521:d41aabad3b7a | 11522:a26eb48d1953 |
---|---|
2460 yd->fd = -1; | 2460 yd->fd = -1; |
2461 yd->friends = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, yahoo_friend_free); | 2461 yd->friends = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, yahoo_friend_free); |
2462 yd->confs = NULL; | 2462 yd->confs = NULL; |
2463 yd->conf_id = 2; | 2463 yd->conf_id = 2; |
2464 | 2464 |
2465 if (!strcmp(id, YAHOO_STATUS_TYPE_AVAILABLE) || !strcmp(id, YAHOO_STATUS_TYPE_ONLINE)) { | 2465 if (!strcmp(id, YAHOO_STATUS_TYPE_AVAILABLE)) { |
2466 yd->current_status = YAHOO_STATUS_AVAILABLE; | 2466 yd->current_status = YAHOO_STATUS_AVAILABLE; |
2467 } else if (!strcmp(id, YAHOO_STATUS_TYPE_BRB)) { | 2467 } else if (!strcmp(id, YAHOO_STATUS_TYPE_BRB)) { |
2468 yd->current_status = YAHOO_STATUS_BRB; | 2468 yd->current_status = YAHOO_STATUS_BRB; |
2469 } else if (!strcmp(id, YAHOO_STATUS_TYPE_BUSY)) { | 2469 } else if (!strcmp(id, YAHOO_STATUS_TYPE_BUSY)) { |
2470 yd->current_status = YAHOO_STATUS_BUSY; | 2470 yd->current_status = YAHOO_STATUS_BUSY; |
3203 | 3203 |
3204 if (gc) | 3204 if (gc) |
3205 yd = gc->proto_data; | 3205 yd = gc->proto_data; |
3206 | 3206 |
3207 type = gaim_status_type_new(GAIM_STATUS_OFFLINE, YAHOO_STATUS_TYPE_OFFLINE, _("Offline"), TRUE); | 3207 type = gaim_status_type_new(GAIM_STATUS_OFFLINE, YAHOO_STATUS_TYPE_OFFLINE, _("Offline"), TRUE); |
3208 types = g_list_append(types, type); | |
3209 | |
3210 type = gaim_status_type_new(GAIM_STATUS_ONLINE, YAHOO_STATUS_TYPE_ONLINE, _("Online"), TRUE); | |
3211 types = g_list_append(types, type); | 3208 types = g_list_append(types, type); |
3212 | 3209 |
3213 type = gaim_status_type_new(GAIM_STATUS_AVAILABLE, YAHOO_STATUS_TYPE_AVAILABLE, _("Available"), TRUE); | 3210 type = gaim_status_type_new(GAIM_STATUS_AVAILABLE, YAHOO_STATUS_TYPE_AVAILABLE, _("Available"), TRUE); |
3214 types = g_list_append(types, type); | 3211 types = g_list_append(types, type); |
3215 | 3212 |