src/protocols/msn/msn.c

changeset 4916
11b8fd3f8ffc
parent 4793
1da93f6c80f3
child 4920
d7edab317c00
equal deleted inserted replaced
4915:9e39899447b8 4916:11b8fd3f8ffc
1588 1588
1589 static const char *msn_list_icon(struct gaim_account *a, struct buddy *b) 1589 static const char *msn_list_icon(struct gaim_account *a, struct buddy *b)
1590 { 1590 {
1591 return "msn"; 1591 return "msn";
1592 } 1592 }
1593 /* 1593
1594 if (uc == 0) 1594 static void msn_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne)
1595 return msn_online_xpm; 1595 {
1596 1596 if (b->present == 0)
1597 uc >>= 1; 1597 *se = "offline";
1598 1598 else if (b->uc >> 1 == 2 || b->uc >> 1 == 6)
1599 if (uc == 2 || uc == 6) 1599 *se = "occupied";
1600 return msn_occ_xpm; 1600 }
1601 1601
1602 return msn_away_xpm;
1603 }
1604 */
1605 static char *msn_get_away_text(int s) 1602 static char *msn_get_away_text(int s)
1606 { 1603 {
1607 switch (s) { 1604 switch (s) {
1608 case MSN_BUSY : 1605 case MSN_BUSY :
1609 return _("Busy"); 1606 return _("Busy");
2002 struct proto_user_opt *puo; 1999 struct proto_user_opt *puo;
2003 ret->protocol = PROTO_MSN; 2000 ret->protocol = PROTO_MSN;
2004 ret->options = OPT_PROTO_MAIL_CHECK; 2001 ret->options = OPT_PROTO_MAIL_CHECK;
2005 ret->name = g_strdup("MSN"); 2002 ret->name = g_strdup("MSN");
2006 ret->list_icon = msn_list_icon; 2003 ret->list_icon = msn_list_icon;
2004 ret->list_emblems = msn_list_emblems;
2007 ret->buddy_menu = msn_buddy_menu; 2005 ret->buddy_menu = msn_buddy_menu;
2008 ret->login = msn_login; 2006 ret->login = msn_login;
2009 ret->close = msn_close; 2007 ret->close = msn_close;
2010 ret->send_im = msn_send_im; 2008 ret->send_im = msn_send_im;
2011 ret->send_typing = msn_send_typing; 2009 ret->send_typing = msn_send_typing;

mercurial