summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/actionQueue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-20 14:25:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-20 14:25:52 +0000
commita346491026d5df1ffe0d41e4881613a47ca6ca47 (patch)
treeffd505fe0680db47ea51549ec3565e23f56e34a1 /plugins/Boltun/src/actionQueue.cpp
parent2ffa7047ec0475856481b9e813eecb99b268d2d0 (diff)
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
Diffstat (limited to 'plugins/Boltun/src/actionQueue.cpp')
-rw-r--r--plugins/Boltun/src/actionQueue.cpp19
1 files changed, 1 insertions, 18 deletions
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);