diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-11 14:01:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-11 14:01:25 +0000 |
commit | 773421e8ba17637d994088c393d406226b516a30 (patch) | |
tree | 130c0bf529e30f493ae4f2abbe1230d31fecdeed /protocols/Omegle/src | |
parent | 3fc8b6f686262e8a595fc10b2bd947526ca77bdc (diff) |
- m_hNetlibUser moved to PROTO_INTERFACE;
- unified protocol loggers
git-svn-id: http://svn.miranda-ng.org/main/trunk@6435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/src')
-rw-r--r-- | protocols/Omegle/src/proto.cpp | 26 | ||||
-rw-r--r-- | protocols/Omegle/src/proto.h | 2 |
2 files changed, 2 insertions, 26 deletions
diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp index fd9b9d9dd2..f0ebd14717 100644 --- a/protocols/Omegle/src/proto.cpp +++ b/protocols/Omegle/src/proto.cpp @@ -84,8 +84,7 @@ OmegleProto::~OmegleProto( ) DWORD_PTR OmegleProto::GetCaps( int type, HANDLE hContact )
{
- switch(type)
- {
+ switch(type) {
case PFLAGNUM_1:
return PF1_CHAT;
case PFLAGNUM_2:
@@ -107,8 +106,7 @@ DWORD_PTR OmegleProto::GetCaps( int type, HANDLE hContact ) int OmegleProto::SetStatus( int new_status )
{
// Routing statuses not supported by Omegle
- switch ( new_status )
- {
+ switch ( new_status ) {
case ID_STATUS_OFFLINE:
case ID_STATUS_CONNECTING:
new_status = ID_STATUS_OFFLINE;
@@ -217,23 +215,3 @@ int OmegleProto::OnContactDeleted(WPARAM wparam,LPARAM) OnLeaveChat(NULL, NULL);
return 0;
}
-
-
-//////////////////////////////////////////////////////////////////////////////
-// OTHER
-
-/*bool OmegleProto::IsMyContact(HANDLE hContact, bool include_chat)
-{
- const char *proto = reinterpret_cast<char*>(GetContactProto(
- reinterpret_cast<WPARAM>(hContact),0));
-
- if ( proto && strcmp(m_szModuleName,proto) == 0 )
- {
- if ( include_chat )
- return true;
- else
- return db_get_b(hContact,m_szModuleName,"ChatRoom",0) == 0;
- } else {
- return false;
- }
-}*/
diff --git a/protocols/Omegle/src/proto.h b/protocols/Omegle/src/proto.h index 85b91bbcb8..5f376e680d 100644 --- a/protocols/Omegle/src/proto.h +++ b/protocols/Omegle/src/proto.h @@ -140,8 +140,6 @@ public: HANDLE log_lock_;
HANDLE events_loop_lock_;
- HANDLE m_hNetlibUser;
-
static void CALLBACK APC_callback(ULONG_PTR p);
// Logging
|