changeset 2066:05df89293018

[gaim-migrate @ 2076] the crowd goes wild. don't try this yet; i haven't tested it. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 13 Jul 2001 16:49:22 +0000
parents 391440022697
children a23832262ca2
files src/oscar.c
diffstat 1 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/oscar.c	Tue Jul 03 19:08:48 2001 +0000
+++ b/src/oscar.c	Fri Jul 13 16:49:22 2001 +0000
@@ -617,16 +617,20 @@
 
 	if (errorcode || !bosip || !cookie) {
 		switch (errorcode) {
+		case 0x05:
+			/* Incorrect nick/password */
+			hide_login_progress(gc, _("Incorrect nickname or password."));
+			plugin_event(event_error, (void *)980, 0, 0, 0);
+			break;
+		case 0x11:
+			/* Suspended account */
+			hide_login_progress(gc, _("Your account is currently suspended."));
+			break;
 		case 0x18:
 			/* connecting too frequently */
 			hide_login_progress(gc, _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer."));
 			plugin_event(event_error, (void *)983, 0, 0, 0);
 			break;
-		case 0x05:
-			/* Incorrect nick/password */
-			hide_login_progress(gc, _("Incorrect nickname or password."));
-			plugin_event(event_error, (void *)980, 0, 0, 0);
-			break;
 		case 0x1c:
 			/* client too old */
 			hide_login_progress(gc, _("The client version you are using is too old. Please upgrade at " WEBSITE));
@@ -640,7 +644,7 @@
 		debug_printf("Error URL: %s\n", errurl);
 		aim_conn_kill(sess, &command->conn);
 		signoff(gc);
-		return -1;
+		return 1;
 	}
 
 
@@ -664,7 +668,7 @@
 	if (bosconn == NULL) {
 		hide_login_progress(gc, _("Internal Error"));
 		signoff(gc);
-		return -1;
+		return 1;
 	}
 
 	aim_conn_addhandler(sess, bosconn, 0x0009, 0x0003, gaim_bosrights, 0);
@@ -707,7 +711,7 @@
 	if (bosconn->fd < 0) {
 		hide_login_progress(gc, _("Could Not Connect"));
 		signoff(gc);
-		return -1;
+		return 1;
 	}
 	aim_auth_sendcookie(sess, bosconn, cookie);
 	gdk_input_remove(gc->inpa);