From a346491026d5df1ffe0d41e4881613a47ca6ca47 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Apr 2013 14:25:52 +0000 Subject: end of the city legend that PSS_MESSAGEW ever existed git-svn-id: http://svn.miranda-ng.org/main/trunk@4482 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Boltun/src/actionQueue.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'plugins/Boltun/src') diff --git a/plugins/Boltun/src/actionQueue.cpp b/plugins/Boltun/src/actionQueue.cpp index a3915bf255..7a8f5be790 100644 --- a/plugins/Boltun/src/actionQueue.cpp +++ b/plugins/Boltun/src/actionQueue.cpp @@ -81,21 +81,6 @@ static bool NotifyTyping(HANDLE hContact) return res != 0; } -static char *MsgServiceName(HANDLE hContact) -{ - - char szServiceName[100]; - char *szProto = GetContactProto(hContact); - if (szProto == NULL) - return PSS_MESSAGE; - - mir_snprintf(szServiceName, sizeof(szServiceName), "%s%sW", szProto, PSS_MESSAGE); - if (ServiceExists(szServiceName)) - return PSS_MESSAGE "W"; - - return PSS_MESSAGE; -} - static void TimerAnswer(HANDLE hContact, const TalkBot::MessageInfo* info) { DBEVENTINFO ldbei; @@ -105,15 +90,13 @@ static void TimerAnswer(HANDLE hContact, const TalkBot::MessageInfo* info) bufsize *= sizeof(TCHAR) + 1; msg = new char[bufsize]; - //msg[size - 1] = '\0'; if (!WideCharToMultiByte(CP_ACP, 0, info->Answer.c_str(), -1, msg, size, NULL, NULL)) FillMemory(msg, size - 1, '-'); //In case of fault return "----" in ANSI part CopyMemory(msg + size, info->Answer.c_str(), size * 2); - - CallContactService(hContact, MsgServiceName(hContact), PREF_TCHAR, (LPARAM)msg); + CallContactService(hContact, PSS_MESSAGE, PREF_TCHAR, (LPARAM)msg); ZeroMemory(&ldbei, sizeof(ldbei)); ldbei.cbSize = sizeof(ldbei); -- cgit v1.2.3