diff options
Diffstat (limited to 'plugins/Chat/manager.cpp')
-rw-r--r-- | plugins/Chat/manager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Chat/manager.cpp b/plugins/Chat/manager.cpp index 1b9ecd9421..02a0f76a59 100644 --- a/plugins/Chat/manager.cpp +++ b/plugins/Chat/manager.cpp @@ -87,7 +87,7 @@ SESSION_INFO* SM_AddSession( const TCHAR* pszID, const char* pszModule) return NULL;
}
-int SM_RemoveSession( const TCHAR* pszID, const char* pszModule)
+int SM_RemoveSession(const TCHAR* pszID, const char* pszModule, BOOL removeContact)
{
SESSION_INFO *pTemp = m_WndList, *pLast = NULL;
@@ -138,6 +138,9 @@ int SM_RemoveSession( const TCHAR* pszID, const char* pszModule) DBWriteContactSettingString(pTemp->hContact, pTemp->pszModule, "Topic", "");
DBWriteContactSettingString(pTemp->hContact, pTemp->pszModule, "StatusBar", "");
DBDeleteContactSetting(pTemp->hContact, "CList", "StatusMsg");
+
+ if (removeContact)
+ CallService(MS_DB_CONTACT_DELETE, (WPARAM)pTemp->hContact, 0);
}
mir_free( pTemp->pszModule );
|