From 29af90eb23768e9eb2c29091fefaaa10c78ff8cd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Oct 2024 16:16:07 +0300 Subject: more code cleaning --- plugins/Scriver/src/msgdialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 1241496857..602aeaeb0e 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -857,7 +857,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) if (isChat()) { if (m_si->wState & STATE_TALK) { m_si->wState &= ~STATE_TALK; - db_set_w(m_hContact, m_si->pszModule, "ApparentMode", 0); + db_unset(m_hContact, m_si->pszModule, "ApparentMode"); } if (m_si->wState & GC_EVENT_HIGHLIGHT) { @@ -882,8 +882,8 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) SetFocus(m_message.GetHwnd()); if (isChat()) { - if (db_get_w(m_hContact, m_si->pszModule, "ApparentMode", 0) != 0) - db_set_w(m_hContact, m_si->pszModule, "ApparentMode", 0); + if (db_get_w(m_hContact, m_si->pszModule, "ApparentMode") != 0) + db_unset(m_hContact, m_si->pszModule, "ApparentMode"); if (Clist_GetEvent(m_hContact, 0)) Clist_RemoveEvent(m_hContact, GC_FAKE_EVENT); } -- cgit v1.2.3