diff src/protocols/oscar/oscar.c @ 10401:3e4ecbdf8d0a

[gaim-migrate @ 11638] Stuff compiles again, if that's what you wanted stuff to do. It works a bit too. I fixed one crash in oscar, only to reveal another that I didnn't fix (tooltips). Most protocols still need updating to actually log in in the specified state, TCL needs some love for gaim_account_connect, perl probably does too but that needs more love anyway. The reconnect plugin could be more intelligent too, as could gaim-remote. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 21 Dec 2004 01:48:30 +0000
parents 6a043ae92db6
children ce098e226486
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Dec 19 20:32:32 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Dec 21 01:48:30 2004 +0000
@@ -5583,14 +5583,16 @@
 
 	if (gc)
 		od = (OscarData *)gc->proto_data;
-	
-	if (od && od->rights.maxawaymsglen == 0)
+
+	if ((od == NULL) || (od->rights.maxawaymsglen == 0)) {
 		gaim_notify_warning(gc, NULL, _("Unable to set AIM away message."),
 				    _("You have probably requested to set your "
 				      "away message before the login procedure "
 				      "completed.  You remain in a \"present\" "
 				      "state; try setting it again when you are "
 				      "fully connected."));
+		return;
+	}
 
 	if (primitive == GAIM_STATUS_AVAILABLE) {
 		aim_setextstatus(od->sess, AIM_ICQ_STATE_NORMAL);