summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Omegle/src/messages.cpp')
-rw-r--r--protocols/Omegle/src/messages.cpp10
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;