diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-21 17:18:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-21 17:18:33 +0000 |
commit | 64516fd98ad1dae35864617563ee9963c0f31917 (patch) | |
tree | 5531fe065d5237dac8523fca1f19ff7f3ceeb958 /src/modules/chat/manager.cpp | |
parent | 5e4262399fa35d391df2cc86ad0b259a08a25e5a (diff) |
- OnSessionCreate was called too early;
- function names normalization
git-svn-id: http://svn.miranda-ng.org/main/trunk@7818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/chat/manager.cpp')
-rw-r--r-- | src/modules/chat/manager.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/chat/manager.cpp b/src/modules/chat/manager.cpp index 0873dae5c3..1b8b498d49 100644 --- a/src/modules/chat/manager.cpp +++ b/src/modules/chat/manager.cpp @@ -72,9 +72,6 @@ static SESSION_INFO* SM_AddSession(const TCHAR *pszID, const char *pszModule) node->ptszID = mir_tstrdup(pszID);
node->pszModule = mir_strdup(pszModule);
- if (ci.OnCreateSession)
- ci.OnCreateSession(node, ci.MM_FindModule(pszModule));
-
if (ci.wndList == NULL) { // list is empty
ci.wndList = node;
node->next = NULL;
@@ -131,8 +128,8 @@ static int SM_RemoveSession(const TCHAR *pszID, const char *pszModule, BOOL remo if ((!pszID && pTemp->iType != GCW_SERVER || !lstrcmpi(pTemp->ptszID, pszID)) && !lstrcmpiA(pTemp->pszModule, pszModule)) {
DWORD dw = pTemp->dwItemData;
- if (ci.OnSessionRemove)
- ci.OnSessionRemove(pTemp);
+ if (ci.OnRemoveSession)
+ ci.OnRemoveSession(pTemp);
DoEventHook(pTemp->ptszID, pTemp->pszModule, GC_SESSION_TERMINATE, NULL, NULL, (DWORD)pTemp->dwItemData);
if (pLast == NULL)
@@ -189,8 +186,8 @@ static BOOL SM_SetOffline(const TCHAR *pszID, const char *pszModule) pTemp->nUsersInNicklist = 0;
if (pTemp->iType != GCW_SERVER)
pTemp->bInitDone = FALSE;
- if (ci.OnSessionOffline)
- ci.OnSessionOffline(pTemp);
+ if (ci.OnOfflineSession)
+ ci.OnOfflineSession(pTemp);
if (pszID)
return TRUE;
}
|