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/proto.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/proto.cpp')
-rw-r--r-- | protocols/Omegle/src/proto.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp index 29612b1a75..e8cc0c4d42 100644 --- a/protocols/Omegle/src/proto.cpp +++ b/protocols/Omegle/src/proto.cpp @@ -90,7 +90,7 @@ DWORD_PTR OmegleProto::GetCaps( int type, MCONTACT hContact ) case PFLAGNUM_2:
return PF2_ONLINE;
case PFLAGNUM_4:
- return PF4_IMSENDUTF; // | PF4_SUPPORTTYPING;
+ return PF4_IMSENDUTF | PF4_SUPPORTTYPING;
case PFLAG_MAXLENOFMESSAGE:
return OMEGLE_MESSAGE_LIMIT;
case PFLAG_UNIQUEIDTEXT:
@@ -174,7 +174,7 @@ int OmegleProto::OnModulesLoaded(WPARAM wParam,LPARAM lParam) {
// Register group chat
GCREGISTER gcr = {sizeof(gcr)};
- gcr.dwFlags = GC_TYPNOTIF; //GC_ACKMSG;
+ gcr.dwFlags = 0; //GC_TYPNOTIF; //GC_ACKMSG;
gcr.pszModule = m_szModuleName;
gcr.ptszDispName = m_tszUserName;
gcr.iMaxText = OMEGLE_MESSAGE_LIMIT;
@@ -215,3 +215,11 @@ int OmegleProto::OnContactDeleted(WPARAM wparam,LPARAM) OnLeaveChat(NULL, NULL);
return 0;
}
+
+int OmegleProto::UserIsTyping(MCONTACT hContact, int type)
+{
+ if (hContact && facy.state_ == STATE_ACTIVE)
+ ForkThread(&OmegleProto::SendTypingWorker, new int(type));
+
+ return 0;
+}
|