summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp4
-rw-r--r--src/core/stdmsg/src/tabs.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index 3a41cf431d..a57d9444a8 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -254,8 +254,8 @@ void CMsgDialog::OnActivate()
if (isChat()) {
UpdateStatusBar();
- 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/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp
index 0fc587e3e5..52e54f4cd1 100644
--- a/src/core/stdmsg/src/tabs.cpp
+++ b/src/core/stdmsg/src/tabs.cpp
@@ -469,7 +469,7 @@ void CTabbedWindow::TabClicked()
if (si) {
if (si->wState & STATE_TALK) {
si->wState &= ~STATE_TALK;
- db_set_w(si->hContact, si->pszModule, "ApparentMode", 0);
+ db_unset(si->hContact, si->pszModule, "ApparentMode");
}
if (si->wState & GC_EVENT_HIGHLIGHT) {