summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-22 17:24:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-22 17:24:33 +0300
commitff6ae8a76d49aa90ff559c7c8be51a30bc24a9cf (patch)
treed4d146bf984d820a9a8f75ab3a38182d9813b658 /protocols/ICQ-WIM/src
parent4adb201a9ca951fa17e76c6221bc1df7de1b61cb (diff)
ICQ-WIN: also we need to remove old e-mail setting after upgrading account
Diffstat (limited to 'protocols/ICQ-WIM/src')
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp
index 2b181dc2e1..d4d8ea7d1d 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -106,11 +106,11 @@ void CIcqProto::OnModulesLoaded()
delSetting(it, "e-mail");
}
else {
- CMStringW wszEmail(getMStringW("Email"));
- if (wszEmail.IsEmpty())
- wszEmail = getMStringW("e-mail");
- if (!wszEmail.IsEmpty())
+ CMStringW wszEmail(getMStringW("e-mail"));
+ if (!wszEmail.IsEmpty()) {
m_szOwnId = wszEmail;
+ delSetting("e-mail");
+ }
}
InitContactCache();