summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-22 17:20:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-22 17:20:55 +0300
commit4adb201a9ca951fa17e76c6221bc1df7de1b61cb (patch)
treefb3e3c082cd976e3f3269277654268d31e920bb8 /protocols/ICQ-WIM
parentee07ec63a300ee6ca3b4fa09e95db5434c94fb75 (diff)
ICQ-WIN: we have to remove all email addrresses when we're upgading old ICQ account
fixes #1847 for newly converted accounts
Diffstat (limited to 'protocols/ICQ-WIM')
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp
index 44e9a6a650..2b181dc2e1 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -101,6 +101,9 @@ void CIcqProto::OnModulesLoaded()
wchar_t buf[100];
_itow(dwUin, buf, 10);
m_szOwnId = buf;
+
+ for (auto &it : AccContacts())
+ delSetting(it, "e-mail");
}
else {
CMStringW wszEmail(getMStringW("Email"));