Changeset 2fe8297 for protocols/msn


Ignore:
Timestamp:
2015-04-19T06:13:57Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
71074ac
Parents:
951aefd
Message:

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"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r951aefd r2fe8297  
    303303                /* CONGRATULATIONS */
    304304        } else if (strcmp(cmd[0], "OUT") == 0) {
    305                 int allow_reconnect = TRUE;
    306 
    307                 if (cmd[1] && strcmp(cmd[1], "OTH") == 0) {
    308                         imcb_error(ic, "Someone else logged in with your account");
    309                         allow_reconnect = FALSE;
    310                 } else if (cmd[1] && strcmp(cmd[1], "SSD") == 0) {
    311                         imcb_error(ic, "Terminating session because of server shutdown");
    312                 } else {
    313                         imcb_error(ic, "Session terminated by remote server (%s)",
    314                                    cmd[1] ? cmd[1] : "reason unknown)");
    315                 }
    316 
    317                 imc_logout(ic, allow_reconnect);
     305                imcb_error(ic, "Session terminated by remote server (%s)", cmd[1] ? cmd[1] : "reason unknown");
     306                imc_logout(ic, TRUE);
    318307                return(0);
    319308        } else if (strcmp(cmd[0], "GCF") == 0) {
Note: See TracChangeset for help on using the changeset viewer.