diff src/protocols/msn/servconn.c @ 8569:ee13d1befabe

[gaim-migrate @ 9317] Patch by Stu Tomlinson to restore MSN error reporting. Thanks! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 03 Apr 2004 03:17:51 +0000
parents 06f57183e29f
children fc27237783ee
line wrap: on
line diff
--- a/src/protocols/msn/servconn.c	Sat Apr 03 01:33:45 2004 +0000
+++ b/src/protocols/msn/servconn.c	Sat Apr 03 03:17:51 2004 +0000
@@ -21,6 +21,7 @@
  */
 #include "msn.h"
 #include "servconn.h"
+#include "error.h"
 
 typedef struct
 {
@@ -84,7 +85,10 @@
 		cb = g_hash_table_lookup(servconn->commands, "_unknown_");
 
 		if (cb == NULL) {
-			gaim_debug(GAIM_DEBUG_WARNING, "msn",
+			if (isdigit(*str))
+				msn_error_handle(session, atoi(str));
+			else
+				gaim_debug(GAIM_DEBUG_WARNING, "msn",
 					   "Unhandled command '%s'\n", str);
 
 			if (params != NULL)