diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-04-23 15:42:36 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-04-23 15:42:36 +0000 |
commit | 8994046b8cd70f9672edf62d118ef066714c005f (patch) | |
tree | 310b18292ced4c0840a498aa0c3bfc4f739eb1da /protocols/Omegle/src/messages.cpp | |
parent | 662444edcced26a7e650aa3ea6b511b8f3db95b0 (diff) |
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
Diffstat (limited to 'protocols/Omegle/src/messages.cpp')
-rw-r--r-- | protocols/Omegle/src/messages.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<TCHAR*>(p), _T("1"));
- mir_free(p);
+ bool typ = (*static_cast<int*>(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;
|