From 2fe82975fa5905c252c960e8a44d2eeed40273ea Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 19 Apr 2015 03:13:57 -0300 Subject: msn: don't prevent reconnections on OUT OTH The servers send them for other reasons nowadays, and all non-MPOP clients are blocked, so OTH is highly unlikely to mean "someone else logged in with your account" --- protocols/msn/ns.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'protocols') diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index f4ee0806..0011d7e7 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -302,19 +302,8 @@ int msn_ns_command(struct msn_data *md, char **cmd, int num_parts) } else if (strcmp(cmd[0], "QRY") == 0) { /* CONGRATULATIONS */ } else if (strcmp(cmd[0], "OUT") == 0) { - int allow_reconnect = TRUE; - - if (cmd[1] && strcmp(cmd[1], "OTH") == 0) { - imcb_error(ic, "Someone else logged in with your account"); - allow_reconnect = FALSE; - } else if (cmd[1] && strcmp(cmd[1], "SSD") == 0) { - imcb_error(ic, "Terminating session because of server shutdown"); - } else { - imcb_error(ic, "Session terminated by remote server (%s)", - cmd[1] ? cmd[1] : "reason unknown)"); - } - - imc_logout(ic, allow_reconnect); + imcb_error(ic, "Session terminated by remote server (%s)", cmd[1] ? cmd[1] : "reason unknown"); + imc_logout(ic, TRUE); return(0); } else if (strcmp(cmd[0], "GCF") == 0) { /* Coming up is cmd[2] bytes of stuff we're supposed to -- cgit v1.2.3