From ff6ae8a76d49aa90ff559c7c8be51a30bc24a9cf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 Feb 2019 17:24:33 +0300 Subject: ICQ-WIN: also we need to remove old e-mail setting after upgrading account --- protocols/ICQ-WIM/src/proto.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/ICQ-WIM/src') 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(); -- cgit v1.2.3