diff 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
line wrap: on
line diff
--- a/src/oscar.c	Wed Jan 10 19:56:39 2001 +0000
+++ b/src/oscar.c	Wed Jan 10 22:15:24 2001 +0000
@@ -1739,7 +1739,7 @@
 					NULL, gaim_caps);
 }
 
-static void oscar_set_away(struct gaim_connection *g, char *message) {
+static void oscar_set_away(struct gaim_connection *g, char *state, char *message) {
 	struct oscar_data *odata = (struct oscar_data *)g->proto_data;
 	aim_bos_setprofile(odata->sess, odata->conn, g->user->user_info, message, gaim_caps);
 }
@@ -2274,11 +2274,17 @@
 	open_url(NULL, "http://aim.aol.com/aimnew/Aim/register.adp?promo=106723&pageset=Aim&client=no");
 }
 
+static GList *oscar_away_states()
+{
+	return g_list_append(NULL, GAIM_AWAY_CUSTOM);
+}
+
 void oscar_init(struct prpl *ret) {
 	ret->protocol = PROTO_OSCAR;
 	ret->options = OPT_PROTO_HTML;
 	ret->name = oscar_name;
 	ret->list_icon = oscar_list_icon;
+	ret->away_states = oscar_away_states;
 	ret->action_menu = oscar_action_menu;
 	ret->user_opts = oscar_user_opts;
 	ret->draw_new_user = oscar_draw_new_user;