diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-05 08:03:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-05 08:03:50 +0000 |
commit | d6ffa6b1b553488cd5fd01d2f577575ac4835d61 (patch) | |
tree | 363d35e50f9485ea94e983ddf3df2ccb2ae3745f /src/modules/metacontacts/meta_services.cpp | |
parent | 5c347de2dfcfd247918507f8705f50afb613a7e0 (diff) |
- unused code removed;
- fix for dynamic adding and removing of subs
git-svn-id: http://svn.miranda-ng.org/main/trunk@8402 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/meta_services.cpp')
-rw-r--r-- | src/modules/metacontacts/meta_services.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp index 13c747b9cf..fa69782d90 100644 --- a/src/modules/metacontacts/meta_services.cpp +++ b/src/modules/metacontacts/meta_services.cpp @@ -590,7 +590,7 @@ int Meta_SettingChanged(WPARAM hContact, LPARAM lParam) db_set(ccMeta->contactID, META_PROTO, buffer, &dcws->value);
DBVARIANT dbv;
- if (Mydb_get(hContact, "CList", "MyHandle", &dbv)) {
+ if (db_get_s(hContact, "CList", "MyHandle", &dbv, 0)) {
strcpy(buffer, "CListName");
strcat(buffer, _itoa(contact_number, szId, 10));
db_set(ccMeta->contactID, META_PROTO, buffer, &dcws->value);
@@ -622,8 +622,8 @@ int Meta_SettingChanged(WPARAM hContact, LPARAM lParam) strcat(buffer, _itoa(contact_number, szId, 10));
DBVARIANT dbv;
- if (proto && !Mydb_get(hContact, proto, "Nick", &dbv)) {
- db_set(ccMeta->contactID, META_PROTO, buffer, &dbv);
+ if (proto && !db_get_ts(hContact, proto, "Nick", &dbv)) {
+ db_set_ts(ccMeta->contactID, META_PROTO, buffer, dbv.ptszVal);
db_free(&dbv);
}
else db_unset(ccMeta->contactID, META_PROTO, buffer);
|