summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-25 13:46:50 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-25 13:46:50 +0300
commit8bd63c2fb2e8578a5b084838872bedc2cd29227e (patch)
tree8274ac4f6f5eca4f82ed833ae25f8e956010ca39
parent9720a851d0c21d29e6c26c80cf90ac8e4a866fd2 (diff)
for #3957 - Import creates useless Clist/MyHandle contact settings
-rw-r--r--plugins/Import/src/import.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 675d6fbf76..2ad6ce1605 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -677,11 +677,10 @@ void CImportBatch::ImportMeta(DBCachedContact *ccSrc)
// ok, now transfer the common data
CreateGroup(tszGroup, hDest);
- if (tszNick && *tszNick) {
- db_set_ws(hDest, "CList", "MyHandle", tszNick);
+ if (tszNick && *tszNick)
AddMessage(LPGENW("Added metacontact '%s'"), tszNick.get());
- }
- else AddMessage(LPGENW("Added metacontact"));
+ else
+ AddMessage(LPGENW("Added metacontact"));
}
ImportContactData icd = { ccSrc->contactID, ccDst->contactID, META_PROTO, META_PROTO, true };
@@ -807,11 +806,10 @@ MCONTACT CImportBatch::ImportContact(MCONTACT hSrc)
CreateGroup(tszGroup, hDst);
- if (tszNick && *tszNick) {
- db_set_ws(hDst, "CList", "MyHandle", tszNick);
+ if (tszNick && *tszNick)
AddMessage(LPGENW("Added %S contact %s, '%s'"), szDstModuleName, pszUniqueID, tszNick.get());
- }
- else AddMessage(LPGENW("Added %S contact %s"), szDstModuleName, pszUniqueID);
+ else
+ AddMessage(LPGENW("Added %S contact %s"), szDstModuleName, pszUniqueID);
srcDb->FreeVariant(&dbv);