From 773421e8ba17637d994088c393d406226b516a30 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 11 Oct 2013 14:01:25 +0000 Subject: - 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 --- protocols/Omegle/src/proto.cpp | 26 ++------------------------ protocols/Omegle/src/proto.h | 2 -- 2 files changed, 2 insertions(+), 26 deletions(-) (limited to 'protocols/Omegle/src') 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(GetContactProto( - reinterpret_cast(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 -- cgit v1.2.3