diff src/protocols/msn/switchboard.c @ 13125:442b23efba54

[gaim-migrate @ 15487] sf patch #1424749, from Evan Schoenberg Fix MSN buddy icon rate-limiting problems committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 05 Feb 2006 21:30:43 +0000
parents fc464a0abccc
children 70809b5c5f86
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Sun Feb 05 20:06:31 2006 +0000
+++ b/src/protocols/msn/switchboard.c	Sun Feb 05 21:30:43 2006 +0000
@@ -340,7 +340,7 @@
 {
 	g_return_if_fail(swboard != NULL);
 
-	gaim_debug_info("msg", "Error: Unable to call the user %s\n", passport);
+	gaim_debug_warning("msg", "Error: Unable to call the user %s for reason %i\n", passport, reason);
 
 	/* TODO: if current_users > 0, this is probably a chat and an invite failed,
 	 * we should report that in the chat or something */
@@ -364,6 +364,8 @@
 
 	swboard = trans->data;
 
+	gaim_debug_warning("msn", "cal_error_helper: command %s failed for reason %i\n",trans->command,reason);
+
 	swboard_error_helper(swboard, reason, passport);
 
 	g_strfreev(params);
@@ -421,6 +423,10 @@
 					str_reason = _("Message could not be sent "
 								   "because a connection error occurred:");
 					break;
+				case MSN_SB_ERROR_TOO_FAST:
+					str_reason = _("Message could not be sent "
+								   "because we are sending too quickly:");
+					break;					
 				default:
 					str_reason = _("Message could not be sent "
 								   "because an error with "
@@ -1043,6 +1049,8 @@
 static void
 cal_timeout(MsnCmdProc *cmdproc, MsnTransaction *trans)
 {
+	gaim_debug_warning("msn", "cal_timeout: command %s timed out\n", trans->command);
+
 	cal_error_helper(trans, MSN_SB_ERROR_UNKNOWN);
 }
 
@@ -1061,6 +1069,8 @@
 		reason = MSN_SB_ERROR_USER_OFFLINE;
 	}
 
+	gaim_debug_warning("msn", "cal_error: command %s gave error %i\n", trans->command, error);
+
 	cal_error_helper(trans, reason);
 }
 
@@ -1122,9 +1132,14 @@
 
 	if (error == 913)
 		reason = MSN_SB_ERROR_OFFLINE;
+	else if (error == 800)
+		reason = MSN_SB_ERROR_TOO_FAST;
 
 	swboard = trans->data;
 
+	gaim_debug_info("msn", "xfr_error %i for %s: trans %x, command %s, reason %i\n",
+					error, swboard->im_user, trans, trans->command, reason);
+
 	swboard_error_helper(swboard, reason, swboard->im_user);
 }