summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-08-24 16:22:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-08-24 16:22:42 +0300
commit1f781d6806e0d869197d898298d7bac2c3db8229 (patch)
treef990514523ebf821ce61efceeda6163f59b6f3b2
parentc4fab6727381c5d89b377aa1c4dc2e3a037c1738 (diff)
SmileyAdd: regression with metacontacts handling fixed
-rw-r--r--plugins/SmileyAdd/src/dlgboxsubclass.cpp2
-rw-r--r--plugins/SmileyAdd/src/services.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp
index 315ea88f36..6d37f6e936 100644
--- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp
+++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp
@@ -33,7 +33,7 @@ struct MsgWndData : public MZeroedObject
void CreateSmileyButton(void)
{
- SmileyPackType *SmileyPack = FindSmileyPack(ProtocolName);
+ SmileyPackType *SmileyPack = FindSmileyPack(ProtocolName, hContact);
bool doSmileyButton = SmileyPack != nullptr && SmileyPack->VisibleSmileyCount() != 0;
doSmileyReplace = true;
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp
index e238b75ba5..aace81df1c 100644
--- a/plugins/SmileyAdd/src/services.cpp
+++ b/plugins/SmileyAdd/src/services.cpp
@@ -26,6 +26,7 @@ LIST<void> menuHandleArray(5);
SmileyPackType* FindSmileyPack(const char *proto, MCONTACT hContact, SmileyPackCType **smlc)
{
+ hContact = DecodeMetaContact(hContact);
if (smlc)
*smlc = g_SmileyPackCStore.GetSmileyPack(proto);