summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_chat.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-20 10:08:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-20 10:08:52 +0000
commitf946ebcb1ac09b7220f8547074496aa2d1b83768 (patch)
tree30af27bf909684e191b08f6939e80eed51ce3efb /protocols/JabberG/src/jabber_chat.cpp
parent0b39e2b4ed0b578040a1eb584d045c6202885f7d (diff)
- indexes replaces with pointers;
- members' name normalization git-svn-id: http://svn.miranda-ng.org/main/trunk@5425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_chat.cpp')
-rw-r--r--protocols/JabberG/src/jabber_chat.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp
index ceca0cac8c..acc0ec2ab5 100644
--- a/protocols/JabberG/src/jabber_chat.cpp
+++ b/protocols/JabberG/src/jabber_chat.cpp
@@ -317,7 +317,7 @@ void CJabberProto::GcLogUpdateMemberStatus(JABBER_LIST_ITEM* item, const TCHAR *
break;
default:
for (int i=0; i < item->resourceCount; i++) {
- JABBER_RESOURCE_STATUS& JS = item->resource[i];
+ JABBER_RESOURCE_STATUS& JS = item->pResources[i];
if ( !lstrcmp(resource, JS.resourceName)) {
if (action != GC_EVENT_JOIN) {
switch(action) {
@@ -552,7 +552,7 @@ int CJabberProto::JabberGcMenuHook(WPARAM, LPARAM lParam)
JABBER_RESOURCE_STATUS *me = NULL, *him = NULL;
for (int i=0; i < item->resourceCount; i++) {
- JABBER_RESOURCE_STATUS& p = item->resource[i];
+ JABBER_RESOURCE_STATUS& p = item->pResources[i];
if ( !lstrcmp(p.resourceName, item->nick )) me = &p;
if ( !lstrcmp(p.resourceName, gcmi->pszUID)) him = &p;
}
@@ -1039,7 +1039,7 @@ static void sttNickListHook(CJabberProto* ppro, JABBER_LIST_ITEM* item, GCHOOK*
{
JABBER_RESOURCE_STATUS *me = NULL, *him = NULL;
for (int i=0; i < item->resourceCount; i++) {
- JABBER_RESOURCE_STATUS& p = item->resource[i];
+ JABBER_RESOURCE_STATUS& p = item->pResources[i];
if ( !lstrcmp(p.resourceName, item->nick )) me = &p;
if ( !lstrcmp(p.resourceName, gch->ptszUID)) him = &p;
}
@@ -1476,8 +1476,8 @@ static void sttSendPrivateMessage(CJabberProto* ppro, JABBER_LIST_ITEM* item, co
HANDLE hContact = ppro->DBCreateContact(szFullJid, NULL, TRUE, FALSE);
if (hContact != NULL) {
for (int i=0; i < item->resourceCount; i++) {
- if (_tcsicmp(item->resource[i].resourceName, nick) == 0) {
- ppro->setWord(hContact, "Status", item->resource[i].status);
+ if (_tcsicmp(item->pResources[i].resourceName, nick) == 0) {
+ ppro->setWord(hContact, "Status", item->pResources[i].status);
break;
} }