# HG changeset patch
# User Christian Hammond <chipx86@chipx86.com>
# Date 1043881452 0
# Node ID c22bbfd75fd68db09597ebec344ae6b07766d425
# Parent  ff6c275a57d4709198648bb6def025d902d45d5d
[gaim-migrate @ 4738]
From Felipe Contreras:

"This fixes a bug that happends when you are chatting with someone, he goes
away, you send a message, the server responds the user is offline, then you
try to start new conversations... everything get's pretty weird."

Thanks.

committer: Tailor Script <tailor@pidgin.im>

diff -r ff6c275a57d4 -r c22bbfd75fd6 src/protocols/msn/msn.c
--- a/src/protocols/msn/msn.c	Wed Jan 29 17:21:49 2003 +0000
+++ b/src/protocols/msn/msn.c	Wed Jan 29 23:04:12 2003 +0000
@@ -588,6 +588,10 @@
 		}
 	} else if (isdigit(*buf)) {
 		handle_errcode(buf, TRUE);
+
+		if (atoi(buf) == 217)
+			msn_kill_switch(ms);
+
 	} else {
 		debug_printf("Unhandled message!\n");
 	}