summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/SpeakAnnounce.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-22 14:40:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-22 14:40:42 +0000
commitcda1de4a64338e8d2bf71a41b595c1607c86ee9d (patch)
tree959fb2f90ea1019d5bf8b77b3bd49faaeb2cb72c /plugins/WinterSpeak/src/SpeakAnnounce.cpp
parenta27aa5dcda7e65de6e1bb04cfd8ea678242648d0 (diff)
MS_* comes for services, ME_* - for events
git-svn-id: http://svn.miranda-ng.org/main/trunk@6585 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WinterSpeak/src/SpeakAnnounce.cpp')
-rw-r--r--plugins/WinterSpeak/src/SpeakAnnounce.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/WinterSpeak/src/SpeakAnnounce.cpp b/plugins/WinterSpeak/src/SpeakAnnounce.cpp
index 43efb965d5..2b9855f61b 100644
--- a/plugins/WinterSpeak/src/SpeakAnnounce.cpp
+++ b/plugins/WinterSpeak/src/SpeakAnnounce.cpp
@@ -23,7 +23,7 @@ void SpeakAnnounce::statusChange(DBCONTACTWRITESETTING *write_setting, HANDLE us
{
return;
}
-
+
// check if we just connected, and want to suppress status changes
if (!m_db.getStatusFlag(AnnounceDatabase::StatusFlag_SuppressConnect) && m_protocol_info.isDisabled((char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)user, 0)))
{
@@ -150,11 +150,11 @@ void SpeakAnnounce::protocolAck(ACKDATA *ack)
//------------------------------------------------------------------------------
void SpeakAnnounce::message(const std::wstring &sentence, HANDLE user)
{
- CallService(ME_SPEAK_MESSAGE, reinterpret_cast<LPARAM>(user), reinterpret_cast<WPARAM>(sentence.c_str()));
+ CallService(MS_SPEAK_MESSAGE, reinterpret_cast<LPARAM>(user), reinterpret_cast<WPARAM>(sentence.c_str()));
}
void SpeakAnnounce::status(const std::wstring &sentence, HANDLE user)
{
- CallService(ME_SPEAK_STATUS, reinterpret_cast<LPARAM>(user), reinterpret_cast<WPARAM>(sentence.c_str()));
+ CallService(MS_SPEAK_STATUS, reinterpret_cast<LPARAM>(user), reinterpret_cast<WPARAM>(sentence.c_str()));
}
//------------------------------------------------------------------------------
@@ -163,7 +163,7 @@ bool SpeakAnnounce::readMessage(HANDLE contact)
std::wstring title = m_user_info.nameString(contact) + L" (" + m_user_info.statusModeString(contact) + L"): ";
HWND window = NULL;
-
+
window = FindWindow(L"#32770", (title + TranslateW(L"Message Session")).c_str());
if (window)
{