diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-04-26 20:54:36 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-04-26 20:54:36 +0000 |
commit | 3361d33bd5782edb07270518705a41f4cd57697b (patch) | |
tree | d2b06dbe5de48c64218f18102e29f1c354283ce0 /protocols/Skype/src/skype_menus.cpp | |
parent | 949435479e650de8bc0c0e192dc879a3e8afacca (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_menus.cpp')
-rw-r--r-- | protocols/Skype/src/skype_menus.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Skype/src/skype_menus.cpp b/protocols/Skype/src/skype_menus.cpp index 9fcff09721..48efbfe558 100644 --- a/protocols/Skype/src/skype_menus.cpp +++ b/protocols/Skype/src/skype_menus.cpp @@ -31,12 +31,12 @@ int CSkypeProto::OnPrebuildContactMenu(WPARAM wParam, LPARAM) if (hContact == NULL)
return 0;
- if (this->IsOnline() && !this->GetSettingByte(hContact, "ChatRoom"))
+ if (this->IsOnline() && !::db_get_b(hContact, this->m_szModuleName, "ChatRoom", 0))
{
bool ctrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
- bool authNeed = this->GetSettingByte(hContact, "Auth") > 0;
- bool grantNeed = this->GetSettingByte(hContact, "Grant") > 0;
+ bool authNeed = ::db_get_b(hContact, this->m_szModuleName, "Auth", 0) > 0;
+ bool grantNeed = ::db_get_b(hContact, this->m_szModuleName, "Grant", 0) > 0;
sttEnableMenuItem( g_hContactMenuItems[CMI_AUTH_REQUEST], ctrlPressed || authNeed);
sttEnableMenuItem( g_hContactMenuItems[CMI_AUTH_GRANT], ctrlPressed || grantNeed);
@@ -81,8 +81,8 @@ int CSkypeProto::GrantAuth(WPARAM wParam, LPARAM lParam) {
if (contact->SetBuddyStatus(true))
{
- this->DeleteSetting(hContact, "Auth");
- this->DeleteSetting(hContact, "Grant");
+ ::db_unset(hContact, this->m_szModuleName, "Auth");
+ ::db_unset(hContact, this->m_szModuleName, "Grant");
}
}
@@ -98,7 +98,7 @@ int CSkypeProto::RevokeAuth(WPARAM wParam, LPARAM lParam) {
if (contact->SetBuddyStatus(false))
{
- this->SetSettingByte(hContact, "Grant", 1);
+ ::db_set_b(hContact, this->m_szModuleName, "Grant", 1);
}
this->contactList.remove_val(contact);
}
|