diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-27 19:31:15 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-27 19:31:15 +0300 |
commit | 5b44aca766e6bee4eadccb1903dcea8408f67706 (patch) | |
tree | ca8bb870f774bbc2980f612f4de2bbb0d8e68bab /plugins | |
parent | 635903271a8760dfbd4d461c72932990fda2cd71 (diff) |
fixes #4501 (MirOTR: хак для ICQ)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MirOTR/src/otr.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/MirOTR/src/otr.cpp b/plugins/MirOTR/src/otr.cpp index 51e2633f24..0b13d0d183 100644 --- a/plugins/MirOTR/src/otr.cpp +++ b/plugins/MirOTR/src/otr.cpp @@ -253,10 +253,7 @@ extern "C" { proto = context->protocol; else proto = Proto_GetBaseAccountName((UINT_PTR)opdata); - // ugly wokaround for ICQ. ICQ protocol reports more than 7k, but in SMP this is too long. - // possibly ICQ doesn't allow single words without spaces to become longer than ~2340? - if (mir_strcmp("ICQ", proto) == 0 || strncmp("ICQ_", proto, 4) == 0) - return 2340; + return CallProtoService(proto, PS_GETCAPS, PFLAG_MAXLENOFMESSAGE, (LPARAM)opdata); } |