diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-12-13 09:00:44 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-12-13 09:00:44 +0000 |
commit | a6203909a9b4bfbae252ab5b7c616309119d84b3 (patch) | |
tree | b19afdb59ac4afd10dba681ef7c47e16b375d37d /protocols/FacebookRM/src/contacts.cpp | |
parent | e23f51997817bdaa549fbed05c9eabb83824c8ed (diff) |
FacebookRM: Experimental and buggy support for custom smileys
git-svn-id: http://svn.miranda-ng.org/main/trunk@2734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index aea08663fb..8ef306dbf3 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -154,6 +154,20 @@ void FacebookProto::SetAllContactStatuses(int status, bool reset_client) DBWriteContactSettingTString(hContact,m_szModuleName,"MirVer", _T(FACEBOOK_NAME));
DBFreeVariant(&dbv);
}
+
+
+ std::tstring foldername = GetAvatarFolder() + L"\\smileys\\";
+ TCHAR *path = _tcsdup(foldername.c_str());
+
+ if (DBGetContactSettingByte(NULL,m_szModuleName,FACEBOOK_KEY_CUSTOM_SMILEYS, DEFAULT_CUSTOM_SMILEYS)) {
+ SMADD_CONT cont;
+ cont.cbSize = sizeof(SMADD_CONT);
+ cont.hContact = hContact;
+ cont.type = 0;
+ cont.path = path;
+ CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, (LPARAM)&cont);
+ mir_free(path);
+ }
}
if (DBGetContactSettingWord(hContact,m_szModuleName,"Status",ID_STATUS_OFFLINE) != status)
|