diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-27 08:05:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-27 08:05:12 +0000 |
commit | 248b320bc7e6ce0cfd6621d47a95b55e2264dd23 (patch) | |
tree | 5735f77b447dc0c1f41b9f1960dd4751cc6a0f83 /protocols/Yahoo/proto.cpp | |
parent | 939b54967dcda681318271d203eedd1dcf5ce934 (diff) |
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@646 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/proto.cpp')
-rw-r--r-- | protocols/Yahoo/proto.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/protocols/Yahoo/proto.cpp b/protocols/Yahoo/proto.cpp index 1fc2ef8af8..a79d3cfbf7 100644 --- a/protocols/Yahoo/proto.cpp +++ b/protocols/Yahoo/proto.cpp @@ -29,7 +29,9 @@ #endif
CYahooProto::CYahooProto( const char* aProtoName, const TCHAR* aUserName ) :
- m_bLoggedIn( FALSE ), poll_loop( 0 )
+ m_bLoggedIn( FALSE ),
+ poll_loop( 0 ),
+ m_chatrooms(3, ChatRoom::compare)
{
m_iVersion = 2;
m_tszUserName = mir_tstrdup( aUserName );
@@ -58,7 +60,8 @@ CYahooProto::~CYahooProto() DestroyHookableEvent(hYahooNudge);
MenuUninit();
-
+
+ m_chatrooms.destroy();
mir_free( m_szModuleName );
mir_free( m_tszUserName );
@@ -71,9 +74,7 @@ CYahooProto::~CYahooProto() ////////////////////////////////////////////////////////////////////////////////////////
// OnModulesLoadedEx - performs hook registration
-//static COLORREF crCols[16] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
-
-INT_PTR CYahooProto::OnModulesLoadedEx( WPARAM, LPARAM )
+int CYahooProto::OnModulesLoadedEx( WPARAM, LPARAM )
{
YHookEvent( ME_USERINFO_INITIALISE, &CYahooProto::OnUserInfoInit );
YHookEvent( ME_IDLE_CHANGED, &CYahooProto::OnIdleEvent);
|