Mercurial > pidgin
comparison src/oscar.c @ 1401:bf041349b11e
[gaim-migrate @ 1411]
abliity to set accounts away independent of each other. also allows for all the other states (like in yahoo and icq). probably breaks MSN, so don't use it until rob fixes it.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 10 Jan 2001 22:15:24 +0000 |
parents | 847b5e39a552 |
children | 96e93119268d |
comparison
equal
deleted
inserted
replaced
1400:476b24cdfa32 | 1401:bf041349b11e |
---|---|
1737 else | 1737 else |
1738 aim_bos_setprofile(odata->sess, odata->conn, info, | 1738 aim_bos_setprofile(odata->sess, odata->conn, info, |
1739 NULL, gaim_caps); | 1739 NULL, gaim_caps); |
1740 } | 1740 } |
1741 | 1741 |
1742 static void oscar_set_away(struct gaim_connection *g, char *message) { | 1742 static void oscar_set_away(struct gaim_connection *g, char *state, char *message) { |
1743 struct oscar_data *odata = (struct oscar_data *)g->proto_data; | 1743 struct oscar_data *odata = (struct oscar_data *)g->proto_data; |
1744 aim_bos_setprofile(odata->sess, odata->conn, g->user->user_info, message, gaim_caps); | 1744 aim_bos_setprofile(odata->sess, odata->conn, g->user->user_info, message, gaim_caps); |
1745 } | 1745 } |
1746 | 1746 |
1747 static void oscar_warn(struct gaim_connection *g, char *name, int anon) { | 1747 static void oscar_warn(struct gaim_connection *g, char *name, int anon) { |
2272 static void oscar_do_new_user() | 2272 static void oscar_do_new_user() |
2273 { | 2273 { |
2274 open_url(NULL, "http://aim.aol.com/aimnew/Aim/register.adp?promo=106723&pageset=Aim&client=no"); | 2274 open_url(NULL, "http://aim.aol.com/aimnew/Aim/register.adp?promo=106723&pageset=Aim&client=no"); |
2275 } | 2275 } |
2276 | 2276 |
2277 static GList *oscar_away_states() | |
2278 { | |
2279 return g_list_append(NULL, GAIM_AWAY_CUSTOM); | |
2280 } | |
2281 | |
2277 void oscar_init(struct prpl *ret) { | 2282 void oscar_init(struct prpl *ret) { |
2278 ret->protocol = PROTO_OSCAR; | 2283 ret->protocol = PROTO_OSCAR; |
2279 ret->options = OPT_PROTO_HTML; | 2284 ret->options = OPT_PROTO_HTML; |
2280 ret->name = oscar_name; | 2285 ret->name = oscar_name; |
2281 ret->list_icon = oscar_list_icon; | 2286 ret->list_icon = oscar_list_icon; |
2287 ret->away_states = oscar_away_states; | |
2282 ret->action_menu = oscar_action_menu; | 2288 ret->action_menu = oscar_action_menu; |
2283 ret->user_opts = oscar_user_opts; | 2289 ret->user_opts = oscar_user_opts; |
2284 ret->draw_new_user = oscar_draw_new_user; | 2290 ret->draw_new_user = oscar_draw_new_user; |
2285 ret->do_new_user = oscar_do_new_user; | 2291 ret->do_new_user = oscar_do_new_user; |
2286 ret->login = oscar_login; | 2292 ret->login = oscar_login; |