diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-27 18:50:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-27 18:50:35 +0000 |
commit | ed66ac7da13f746d05ed832cf1d6d84cecb18b22 (patch) | |
tree | 2d0914cdbc619be538a09503533f08347b43f6b7 /protocols/JabberG/src/jabber_chat.cpp | |
parent | 8b48b41245884894fdfe102287dcdeacb0ace9b5 (diff) |
unused method removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@16783 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_chat.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index 6dd014257d..82f7b86477 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -117,11 +117,14 @@ int JabberGcGetStatus(JABBER_RESOURCE_STATUS *r) int CJabberProto::GcInit(JABBER_LIST_ITEM *item)
{
- int i;
+ if (item->bChatActive)
+ return 1;
// translate string for menus (this can't be done in initializer)
- for (i = 0; i < _countof(sttAffiliationItems); i++) sttAffiliationItems[i].translate();
- for (i = 0; i < _countof(sttRoleItems); i++) sttRoleItems[i].translate();
+ for (int i = 0; i < _countof(sttAffiliationItems); i++)
+ sttAffiliationItems[i].translate();
+ for (int i = 0; i < _countof(sttRoleItems); i++)
+ sttRoleItems[i].translate();
ptrT szNick(JabberNickFromJID(item->jid));
@@ -162,11 +165,11 @@ int CJabberProto::GcInit(JABBER_LIST_ITEM *item) }
}
- item->bChatActive = TRUE;
+ item->bChatActive = true;
GCDEST gcd = { m_szModuleName, item->jid, GC_EVENT_ADDGROUP };
GCEVENT gce = { sizeof(gce), &gcd };
- for (i = _countof(sttStatuses) - 1; i >= 0; i--) {
+ for (int i = _countof(sttStatuses) - 1; i >= 0; i--) {
gce.ptszStatus = TranslateTS(sttStatuses[i]);
CallServiceSync(MS_GC_EVENT, NULL, (LPARAM)&gce);
}
@@ -177,14 +180,6 @@ int CJabberProto::GcInit(JABBER_LIST_ITEM *item) return 0;
}
-void CJabberProto::GcLogCreate(JABBER_LIST_ITEM *item)
-{
- if (item->bChatActive)
- return;
-
- GcInit(item);
-}
-
void CJabberProto::GcLogShowInformation(JABBER_LIST_ITEM *item, pResourceStatus &user, TJabberGcLogInfoType type)
{
if (!item || !user || (item->bChatActive != 2)) return;
@@ -354,7 +349,7 @@ void CJabberProto::GcQuit(JABBER_LIST_ITEM *item, int code, HXML reason) CallServiceSync(MS_GC_EVENT, (code == 200) ? SESSION_TERMINATE : SESSION_OFFLINE, (LPARAM)&gce);
db_unset(item->hContact, "CList", "Hidden");
- item->bChatActive = FALSE;
+ item->bChatActive = false;
if (m_bJabberOnline) {
TCHAR szPresenceTo[JABBER_MAX_JID_LEN];
|