From 8994046b8cd70f9672edf62d118ef066714c005f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 23 Apr 2014 15:42:36 +0000 Subject: Omegle: Support sending typing notifications (for TabSRMM only), version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@9062 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/messages.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Omegle/src/messages.cpp') diff --git a/protocols/Omegle/src/messages.cpp b/protocols/Omegle/src/messages.cpp index 4ec6ef36fe..e7655c421c 100644 --- a/protocols/Omegle/src/messages.cpp +++ b/protocols/Omegle/src/messages.cpp @@ -49,17 +49,17 @@ void OmegleProto::SendTypingWorker(void *p) return; // Save typing info - bool typ = !_tcscmp(static_cast(p), _T("1")); - mir_free(p); + bool typ = (*static_cast(p) == PROTOTYPE_SELFTYPING_ON); + delete p; // Ignore same typing info - if ( facy.typing_ == typ ) + if (facy.typing_ == typ) return; facy.typing_ = typ; // Wait for eventually changes to typing info by other thread and ignore if changed - SleepEx( 2000, true ); - if ( facy.typing_ != typ || facy.old_typing_ == typ || facy.state_ != STATE_ACTIVE ) + SleepEx(2000, true); + if (facy.typing_ != typ || facy.old_typing_ == typ || facy.state_ != STATE_ACTIVE) return; facy.old_typing_ = typ; -- cgit v1.2.3