summaryrefslogtreecommitdiff
path: root/plugins/CyrTranslit/src/TransliterationProtocol.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-11 20:30:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-11 20:30:43 +0000
commit52a779c43192b3b3824f6ade3a11f4eec969f6c9 (patch)
tree4455e64340eaaedd4a96a66f7c10bec730f276b1 /plugins/CyrTranslit/src/TransliterationProtocol.cpp
parentae1775795ae23f67db0079cd845b904c5d4a8e98 (diff)
final fix for CyrTranslit
git-svn-id: http://svn.miranda-ng.org/main/trunk@1876 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CyrTranslit/src/TransliterationProtocol.cpp')
-rw-r--r--plugins/CyrTranslit/src/TransliterationProtocol.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp
index afba765122..4fd3fb1b29 100644
--- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp
+++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp
@@ -18,6 +18,7 @@
*/
#include "plugin.h"
+#include "MirandaContact.h"
#include "TransliterationProtocol.h"
#include "TransliterationMap.h"
@@ -96,6 +97,9 @@ void TransliterationProtocol::TranslateMessageA(WPARAM wParam, LPARAM lParam)
INT_PTR TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam)
{
CCSDATA *ccs = reinterpret_cast<CCSDATA*>(lParam);
+ if ( !MirandaContact::bIsActive(ccs->hContact))
+ return CallService(MS_PROTO_CHAINSEND, wParam, lParam);
+
LPARAM oldlParam = ccs->lParam;
TranslateMessageW(wParam, lParam);
@@ -112,6 +116,9 @@ INT_PTR TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam)
INT_PTR TransliterationProtocol::sendMessageA(WPARAM wParam, LPARAM lParam)
{
CCSDATA *ccs = reinterpret_cast<CCSDATA*>(lParam);
+ if ( !MirandaContact::bIsActive(ccs->hContact))
+ return CallService(MS_PROTO_CHAINSEND, wParam, lParam);
+
LPARAM oldlParam = ccs->lParam;
bool msgProcessed = true;