Mercurial > pidgin.yaz
comparison libpurple/account.c @ 31089:f3e3e7fecf34
Tweak the login server migration for ICQ:
darkrain42 pointed out that I put the wrong hostname in here for the secure AIM
login server. We then discussed and determined that the migration code should
also cover both non-secure AIM login server hostnames that we've used.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 31 Oct 2010 23:52:24 +0000 |
parents | f9664876549f |
children | d81cca013782 |
comparison
equal
deleted
inserted
replaced
31088:948a94dcff94 | 31089:f3e3e7fecf34 |
---|---|
518 /* Migrate the login server setting for ICQ accounts. See | 518 /* Migrate the login server setting for ICQ accounts. See |
519 * 'mtn log --last 1 --no-graph --from b6d7712e90b68610df3bd2d8cbaf46d94c8b3794' | 519 * 'mtn log --last 1 --no-graph --from b6d7712e90b68610df3bd2d8cbaf46d94c8b3794' |
520 * for details on the change. */ | 520 * for details on the change. */ |
521 | 521 |
522 if(purple_strequal(purple_account_get_protocol_id(account), "prpl-icq")) { | 522 if(purple_strequal(purple_account_get_protocol_id(account), "prpl-icq")) { |
523 char *tmp = purple_account_get_string(account, "server", NULL); | |
524 | |
523 /* Non-secure server */ | 525 /* Non-secure server */ |
524 if(purple_strequal(purple_account_get_string(account, "server", NULL), | 526 if(purple_strequal(tmp, "login.messaging.aol.com") || |
525 "login.messaging.aol.com")) | 527 purple_strequal(tmp, "login.oscar.aol.com")) |
526 purple_account_set_string(account, "server", "login.icq.com"); | 528 purple_account_set_string(account, "server", "login.icq.com"); |
527 | 529 |
528 /* Secure server */ | 530 /* Secure server */ |
529 if(purple_strequal(purple_account_get_string(account, "server", NULL), | 531 if(purple_strequal(tmp, "slogin.oscar.aol.com")) |
530 "slogin.messaging.aol.com")) | |
531 purple_account_set_string(account, "server", "slogin.icq.com"); | 532 purple_account_set_string(account, "server", "slogin.icq.com"); |
532 } | 533 } |
533 | 534 |
534 return; | 535 return; |
535 } | 536 } |