From e441a31e9f912fc8e9244d16560565559b1924d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Sep 2019 23:43:06 +0300 Subject: end of manual experiments with CList/NotOnList --- protocols/Dummy/src/dummy_proto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Dummy') diff --git a/protocols/Dummy/src/dummy_proto.cpp b/protocols/Dummy/src/dummy_proto.cpp index 5806991b23..b1b10c4060 100644 --- a/protocols/Dummy/src/dummy_proto.cpp +++ b/protocols/Dummy/src/dummy_proto.cpp @@ -155,11 +155,11 @@ MCONTACT CDummyProto::AddToList(int flags, PROTOSEARCHRESULT* psr) if (flags & PALF_TEMPORARY) { Contact_Hide(hContact); - db_set_b(hContact, "CList", "NotOnList", 1); + Contact_RemoveFromList(hContact); } - else if (db_get_b(hContact, "CList", "NotOnList", 0)) { + else if (!Contact_OnList(hContact)) { Contact_Hide(hContact, false); - db_unset(hContact, "CList", "NotOnList"); + Contact_PutOnList(hContact); } setWString(hContact, uniqueIdSetting, psr->id.w); setWString(hContact, "Nick", psr->id.w); -- cgit v1.2.3