diff src/protocols/oscar/oscar.c @ 7313:be7c1468c6a7

[gaim-migrate @ 7897] I thought I commited some of this a while ago... oh well. None of it is really important at all. I uncommented the available message stuff, it might work for some people (Sam), but doesn't work for me. I don't want to have to comment this out again before 0.72... so someone get this working (Sam). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 22 Oct 2003 03:32:21 +0000
parents 0ed0ac132b1b
children 3bcd867c22f3
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Wed Oct 22 02:01:30 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Wed Oct 22 03:32:21 2003 +0000
@@ -3411,7 +3411,7 @@
 	}
 	
 	if (alertitle)
-		gaim_debug(GAIM_DEBUG_MISC, "oscar", "Got an alert '%s' %s\n", alertitle, alerturl);
+		gaim_debug(GAIM_DEBUG_MISC, "oscar", "Got an alert '%s' %s\n", alertitle, alerturl ? alerturl : "");
 
 	return 1;
 }
@@ -6339,22 +6339,22 @@
 					   _("Cancel"), NULL, gc);
 }
 
-#if 0
 static void oscar_setavailmsg(GaimConnection *gc, char *text) {
 	OscarData *od = (OscarData *)gc->proto_data;
 
+	aim_locate_setprofile(od->sess, NULL, NULL, 0, NULL, "", 0, 0);
 	aim_srv_setavailmsg(od->sess, text);
 }
 
 static void oscar_show_setavailmsg(GaimConnection *gc)
 {
-	gaim_request_input(gc, NULL, _("Available Message:"),
-					   NULL, "Please talk to me, I'm lonely! (and single)", TRUE, FALSE,
+	gaim_request_input(gc, NULL, _("Available Message:"), NULL,
+					   _("I'm doing work and hoping for a distraction--IM me!"), 
+					   TRUE, FALSE,
 					   _("OK"), G_CALLBACK(oscar_setavailmsg),
 					   _("Cancel"), NULL,
 					   gc);
 }
-#endif
 
 static void oscar_show_set_info(GaimConnection *gc)
 {
@@ -6424,13 +6424,11 @@
 	pam->gc = gc;
 	m = g_list_append(m, pam);
 
-#if 0
 	pam = g_new0(struct proto_actions_menu, 1);
 	pam->label = _("Set Available Message");
 	pam->callback = oscar_show_setavailmsg;
 	pam->gc = gc;
 	m = g_list_append(m, pam);
-#endif
 
 	pam = g_new0(struct proto_actions_menu, 1);
 	pam->label = _("Change Password");