From 5b44aca766e6bee4eadccb1903dcea8408f67706 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Jun 2024 19:31:15 +0300 Subject: =?UTF-8?q?fixes=20#4501=20(MirOTR:=20=D1=85=D0=B0=D0=BA=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20ICQ)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/MirOTR/src/otr.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/MirOTR') 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); } -- cgit v1.2.3