diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-02 22:30:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-02 22:30:54 +0300 |
commit | 26d7cc8c81533ca32ec795f1035b01a23c71a06d (patch) | |
tree | 8695c3a8143cbb2fe0e0a63ccb03250c7419f0f5 /plugins/SmileyAdd/src | |
parent | 7f88379698aa8a608c9a2b3f23c4e21c207f5735 (diff) |
Facebook: stickers support
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r-- | plugins/SmileyAdd/src/customsmiley.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/SmileyAdd/src/customsmiley.cpp b/plugins/SmileyAdd/src/customsmiley.cpp index 220b10f31d..b6e502e1f4 100644 --- a/plugins/SmileyAdd/src/customsmiley.cpp +++ b/plugins/SmileyAdd/src/customsmiley.cpp @@ -70,15 +70,7 @@ bool SmileyCType::CreateTriggerText(char *text) if (mir_strlen(text) == 0)
return false;
- size_t reslen;
- ptrA res((char*)mir_base64_decode(mir_urlDecode(text), &reslen));
- if (res == nullptr)
- return false;
-
- char save = res[reslen]; res[reslen] = 0; // safe because of mir_alloc
- wchar_t *txt = mir_utf8decodeW(res);
- res[reslen] = save;
-
+ wchar_t *txt = mir_utf8decodeW(text);
if (txt == nullptr)
return false;
|