Mercurial > pidgin.yaz
comparison src/protocols/msn/msn.c @ 4732:c15e0699acae
[gaim-migrate @ 5047]
hopefully this doesn't break anything.
- Capabilities are back in the tooltips
- Jabber does the neat status thing in the buddy list
- jabber "broken" buddies are gone! woohoo!
- most of the right-click menu items moved back to where they used to live,
but Get Info remains at the top, because that's where it should be.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 13 Mar 2003 06:08:56 +0000 |
parents | 751c37a940dd |
children | 01cae9259e2f |
comparison
equal
deleted
inserted
replaced
4731:6f0ecc21db46 | 4732:c15e0699acae |
---|---|
416 debug_printf("\n"); | 416 debug_printf("\n"); |
417 } else if (!g_strncasecmp(buf, "FLN", 3)) { | 417 } else if (!g_strncasecmp(buf, "FLN", 3)) { |
418 char *usr = buf; | 418 char *usr = buf; |
419 | 419 |
420 GET_NEXT(usr); | 420 GET_NEXT(usr); |
421 serv_got_update(gc, usr, 0, 0, 0, 0, 0, 0); | 421 serv_got_update(gc, usr, 0, 0, 0, 0, 0); |
422 } else if (!g_strncasecmp(buf, "GTC", 3)) { | 422 } else if (!g_strncasecmp(buf, "GTC", 3)) { |
423 } else if (!g_strncasecmp(buf, "INF", 3)) { | 423 } else if (!g_strncasecmp(buf, "INF", 3)) { |
424 } else if (!g_strncasecmp(buf, "ILN", 3)) { | 424 } else if (!g_strncasecmp(buf, "ILN", 3)) { |
425 char *state, *user, *friend, *tmp = buf; | 425 char *state, *user, *friend, *tmp = buf; |
426 int status = 0; | 426 int status = 0; |
450 status |= UC_UNAVAILABLE | (MSN_PHONE << 1); | 450 status |= UC_UNAVAILABLE | (MSN_PHONE << 1); |
451 } else if (!g_strcasecmp(state, "LUN")) { | 451 } else if (!g_strcasecmp(state, "LUN")) { |
452 status |= UC_UNAVAILABLE | (MSN_LUNCH << 1); | 452 status |= UC_UNAVAILABLE | (MSN_LUNCH << 1); |
453 } | 453 } |
454 | 454 |
455 serv_got_update(gc, user, 1, 0, 0, 0, status, 0); | 455 serv_got_update(gc, user, 1, 0, 0, 0, status); |
456 } else if (!g_strncasecmp(buf, "LST", 3)) { | 456 } else if (!g_strncasecmp(buf, "LST", 3)) { |
457 char *which, *who, *friend, *tmp = buf; | 457 char *which, *who, *friend, *tmp = buf; |
458 struct msn_add_permit *ap; /* for any as yet undealt with buddies who've added you to their buddy list when you were off-line. How dare they! */ | 458 struct msn_add_permit *ap; /* for any as yet undealt with buddies who've added you to their buddy list when you were off-line. How dare they! */ |
459 GSList *perm = gc->account->permit; /* current permit list */ | 459 GSList *perm = gc->account->permit; /* current permit list */ |
460 GSList *denyl = gc->account->deny; | 460 GSList *denyl = gc->account->deny; |
594 status |= UC_UNAVAILABLE | (MSN_PHONE << 1); | 594 status |= UC_UNAVAILABLE | (MSN_PHONE << 1); |
595 } else if (!g_strcasecmp(state, "LUN")) { | 595 } else if (!g_strcasecmp(state, "LUN")) { |
596 status |= UC_UNAVAILABLE | (MSN_LUNCH << 1); | 596 status |= UC_UNAVAILABLE | (MSN_LUNCH << 1); |
597 } | 597 } |
598 | 598 |
599 serv_got_update(gc, user, 1, 0, 0, 0, status, 0); | 599 serv_got_update(gc, user, 1, 0, 0, 0, status); |
600 } else if (!g_strncasecmp(buf, "OUT", 3)) { | 600 } else if (!g_strncasecmp(buf, "OUT", 3)) { |
601 char *tmp = buf; | 601 char *tmp = buf; |
602 | 602 |
603 GET_NEXT(tmp); | 603 GET_NEXT(tmp); |
604 if (!g_strncasecmp(tmp, "OTH", 3)) { | 604 if (!g_strncasecmp(tmp, "OTH", 3)) { |
1635 md->file_transfers = g_slist_append(md->file_transfers, mft); | 1635 md->file_transfers = g_slist_append(md->file_transfers, mft); |
1636 | 1636 |
1637 mft->xfer = transfer_out_add(gc, mft->sn); | 1637 mft->xfer = transfer_out_add(gc, mft->sn); |
1638 } | 1638 } |
1639 #endif | 1639 #endif |
1640 static const char *msn_status_text(struct buddy *b) { | 1640 static char *msn_status_text(struct buddy *b) { |
1641 if (b->uc & UC_UNAVAILABLE) | 1641 if (b->uc & UC_UNAVAILABLE) |
1642 return msn_get_away_text(b->uc >> 1); | 1642 return strip_html(msn_get_away_text(b->uc >> 1)); |
1643 return NULL; | 1643 return NULL; |
1644 } | 1644 } |
1645 | 1645 |
1646 static const char *msn_tooltip_text(struct buddy *b) { | 1646 static char *msn_tooltip_text(struct buddy *b) { |
1647 return g_strdup(msn_get_away_text(b->uc >> 1)); | 1647 return strip_html(msn_get_away_text(b->uc >> 1)); |
1648 } | 1648 } |
1649 | 1649 |
1650 static GList *msn_buddy_menu(struct gaim_connection *gc, char *who) | 1650 static GList *msn_buddy_menu(struct gaim_connection *gc, char *who) |
1651 { | 1651 { |
1652 GList *m = NULL; | 1652 GList *m = NULL; |