diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:01:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:01:20 +0000 |
commit | 00c866aaa0b79c354f9c71ca5d61f57daeec6e6a (patch) | |
tree | 0c17ecc96c52562dbf31454a1908e726be2b5c85 /protocols/Skype/src/skype_blocked.cpp | |
parent | 343ed18d264ae1b90eda3c64ffb066035997489f (diff) |
protocol DB helpers for Skype
git-svn-id: http://svn.miranda-ng.org/main/trunk@5313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_blocked.cpp')
-rw-r--r-- | protocols/Skype/src/skype_blocked.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_blocked.cpp b/protocols/Skype/src/skype_blocked.cpp index a60e25b282..511c0fd423 100644 --- a/protocols/Skype/src/skype_blocked.cpp +++ b/protocols/Skype/src/skype_blocked.cpp @@ -27,15 +27,15 @@ int CSkypeProto::BlockCommand(WPARAM wParam, LPARAM lParam) this->contactList.remove_val(contact);
::CallService(MS_DB_CONTACT_DELETE, wParam, 0);
}
- else if (::db_get_b(hContact, this->m_szModuleName, "IsSkypeOut", 0) > 0)
- ::db_set_w(hContact, this->m_szModuleName, "Status", ID_STATUS_OFFLINE);
+ else if (this->getByte(hContact, "IsSkypeOut", 0) > 0)
+ this->setWord(hContact, "Status", ID_STATUS_OFFLINE);
}
}
else
{
if (contact->SetBlocked(false))
- if (::db_get_b(hContact, this->m_szModuleName, "IsSkypeOut", 0) > 0)
- ::db_set_w(hContact, this->m_szModuleName, "Status", ID_STATUS_ONTHEPHONE);
+ if (this->getByte(hContact, "IsSkypeOut", 0) > 0)
+ this->setWord(hContact, "Status", ID_STATUS_ONTHEPHONE);
}
}
|