summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp6
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp4
2 files changed, 5 insertions, 5 deletions
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);
}
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index ff4214d1c2..982ab1cdcb 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -2590,8 +2590,8 @@ void CMsgDialog::UpdateWindowState(UINT msg)
if (m_si) {
m_hTabIcon = m_hTabStatusIcon;
- if (db_get_w(m_si->hContact, m_si->pszModule, "ApparentMode", 0) != 0)
- db_set_w(m_si->hContact, m_si->pszModule, "ApparentMode", 0);
+ if (db_get_w(m_si->hContact, m_si->pszModule, "ApparentMode") != 0)
+ db_unset(m_si->hContact, m_si->pszModule, "ApparentMode");
if (Clist_GetEvent(m_si->hContact, 0))
Clist_RemoveEvent(m_si->hContact, GC_FAKE_EVENT);