comparison src/protocols/msn/msn.c @ 5136:381da05cb5ed

[gaim-migrate @ 5500] this started out as simply adding an option to right-click on a jabber buddy and re-request authorization. Then I ended up chasing the disgusting mess of const vs non-const parameters all over gaim. The end result is that you can now right-click on jabber buddies and re-request auth like you can for ICQ. Also, a lot more things are const that should be, I fixed a bug or two, and I cleaned up one of my least favorite functions in gaim (linkify_text). It is now decidedly less evil. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 15 Apr 2003 04:18:00 +0000
parents b37d7d09ec83
children b31ad163de3b
comparison
equal deleted inserted replaced
5135:102135caa225 5136:381da05cb5ed
1414 1414
1415 return len; 1415 return len;
1416 } 1416 }
1417 #endif 1417 #endif
1418 1418
1419 static int msn_send_im(struct gaim_connection *gc, char *who, char *message, int len, int flags) 1419 static int msn_send_im(struct gaim_connection *gc, const char *who, const char *message, int len, int flags)
1420 { 1420 {
1421 struct msn_data *md = gc->proto_data; 1421 struct msn_data *md = gc->proto_data;
1422 struct msn_switchboard *ms = msn_find_switch(gc, who); 1422 struct msn_switchboard *ms = msn_find_switch(gc, who);
1423 char buf[MSN_BUF_LEN]; 1423 char buf[MSN_BUF_LEN];
1424 1424
1647 return g_strdup_printf(_("<b>Status:</b> %s"), msn_get_away_text(b->uc >> 1)); 1647 return g_strdup_printf(_("<b>Status:</b> %s"), msn_get_away_text(b->uc >> 1));
1648 1648
1649 return NULL; 1649 return NULL;
1650 } 1650 }
1651 1651
1652 static GList *msn_buddy_menu(struct gaim_connection *gc, char *who) 1652 static GList *msn_buddy_menu(struct gaim_connection *gc, const char *who)
1653 { 1653 {
1654 GList *m = NULL; 1654 GList *m = NULL;
1655 #if 0 1655 #if 0
1656 struct proto_buddy_menu *pbm; 1656 struct proto_buddy_menu *pbm;
1657 struct buddy *b = gaim_find_buddy(gc->account, who); 1657 struct buddy *b = gaim_find_buddy(gc->account, who);