aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/ns.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-04-19 03:13:57 -0300
committerdequis <dx@dxzone.com.ar>2015-04-19 03:13:57 -0300
commit2fe82975fa5905c252c960e8a44d2eeed40273ea (patch)
treea919d41cf9de87bba569155bf92561673306ab93 /protocols/msn/ns.c
parent951aefdab1f09f35f2deef8c490b590313c94192 (diff)
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"
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r--protocols/msn/ns.c15
1 files changed, 2 insertions, 13 deletions
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