summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_util.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_util.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_util.cpp')
-rw-r--r--protocols/JabberG/src/jabber_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index bf438b42b7..d32ad2404e 100644
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -172,7 +172,7 @@ JABBER_RESOURCE_STATUS* CJabberProto::ResourceInfoFromJID(const TCHAR *jid)
return &item->itemResource;
if (*++p == '\0') return NULL;
- JABBER_RESOURCE_STATUS *r = item->resource;
+ JABBER_RESOURCE_STATUS *r = item->pResources;
if (r == NULL) return NULL;
int i;
@@ -1065,8 +1065,8 @@ TCHAR* CJabberProto::GetClientJID(const TCHAR *jid, TCHAR* dest, size_t destLen)
TCHAR* p = _tcschr(dest, '/');
JABBER_LIST_ITEM* LI = ListGetItemPtr(LIST_ROSTER, jid);
- if (LI && LI->resourceCount == 1 && LI->resource[ 0 ].szCapsNode &&
- _tcsicmp(LI->resource[ 0 ].szCapsNode, _T("http://talk.google.com/xmpp/bot/caps")) == 0)
+ if (LI && LI->resourceCount == 1 && LI->pResources[ 0 ].szCapsNode &&
+ _tcsicmp(LI->pResources[ 0 ].szCapsNode, _T("http://talk.google.com/xmpp/bot/caps")) == 0)
{
if (p) *p = 0;
return dest;