Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yahoo.c @ 2876:caec520fde0b
[gaim-migrate @ 2889]
neasdgfjasiasldngp
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 11 Dec 2001 16:37:07 +0000 |
parents | 26be84883f91 |
children | 7a10d1538092 |
comparison
equal
deleted
inserted
replaced
2875:bc8f5a2231b8 | 2876:caec520fde0b |
---|---|
775 return "Out To Lunch"; | 775 return "Out To Lunch"; |
776 case YAHOO_STATUS_STEPPEDOUT: | 776 case YAHOO_STATUS_STEPPEDOUT: |
777 return "Stepped Out"; | 777 return "Stepped Out"; |
778 case YAHOO_STATUS_INVISIBLE: | 778 case YAHOO_STATUS_INVISIBLE: |
779 return "Invisible"; | 779 return "Invisible"; |
780 } | 780 default: |
781 | 781 return "Online"; |
782 return "Online"; | 782 } |
783 } | 783 } |
784 | 784 |
785 static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who) | 785 static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who) |
786 { | 786 { |
787 GList *m = NULL; | 787 GList *m = NULL; |
791 segfault and get the bug report. */ | 791 segfault and get the bug report. */ |
792 static char buf[1024]; | 792 static char buf[1024]; |
793 | 793 |
794 if (!(b->uc & UC_UNAVAILABLE)) | 794 if (!(b->uc & UC_UNAVAILABLE)) |
795 return NULL; | 795 return NULL; |
796 if (b->uc >> 1 == YAHOO_STATUS_IDLE) | |
797 return NULL; | |
796 | 798 |
797 pbm = g_new0(struct proto_buddy_menu, 1); | 799 pbm = g_new0(struct proto_buddy_menu, 1); |
798 if ((b->uc >> 1) != YAHOO_STATUS_CUSTOM) | 800 if ((b->uc >> 1) != YAHOO_STATUS_CUSTOM) |
799 g_snprintf(buf, sizeof buf, "Status: %s", yahoo_get_status_string(b->uc >> 1)); | 801 g_snprintf(buf, sizeof buf, "Status: %s", yahoo_get_status_string(b->uc >> 1)); |
800 else | 802 else |