diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:20:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:20:29 +0000 |
commit | bfad803f0247a7395ed67eb04c190b3dfa511b0c (patch) | |
tree | f128d4f70a89b170500b659a815d66a9bd983d98 /protocols/AimOscar/src/avatars.cpp | |
parent | 6ce6a5277e749cf6082ae42f005b68b3ec763c6c (diff) |
protocol DB helpers for AimOscar
git-svn-id: http://svn.miranda-ng.org/main/trunk@5315 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src/avatars.cpp')
-rw-r--r-- | protocols/AimOscar/src/avatars.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/AimOscar/src/avatars.cpp b/protocols/AimOscar/src/avatars.cpp index a25188706b..7f54961398 100644 --- a/protocols/AimOscar/src/avatars.cpp +++ b/protocols/AimOscar/src/avatars.cpp @@ -82,8 +82,8 @@ void CAimProto::avatar_request_handler(HANDLE hContact, char* hash, unsigned cha {
if (saved_hash)
{
- db_unset(hContact, m_szModuleName, AIM_KEY_AHT);
- db_unset(hContact, m_szModuleName, AIM_KEY_AH);
+ delSetting(hContact, AIM_KEY_AHT);
+ delSetting(hContact, AIM_KEY_AH);
ProtoBroadcastAck(hContact, ACKTYPE_AVATAR, ACKRESULT_STATUS, NULL, 0);
}
@@ -117,11 +117,8 @@ void CAimProto::avatar_retrieval_handler(const char* sn, const char* hash, const CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName, 0);
mir_free(my_sn);
}
-// else
-// ShowError("Cannot set avatar. File '%s' could not be created/overwritten", file);
}
- else
- LOG("AIM sent avatar of zero length for %s.(Usually caused by repeated request for the same icon)", sn);
+ else LOG("AIM sent avatar of zero length for %s.(Usually caused by repeated request for the same icon)", sn);
ProtoBroadcastAck(AI.hContact, ACKTYPE_AVATAR, res ? ACKRESULT_SUCCESS : ACKRESULT_FAILED, &AI, 0);
}
|