diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-14 14:49:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-14 14:49:06 +0000 |
commit | 7ff042f06d3fdaa24622f66e9c08012611fd4fa4 (patch) | |
tree | 6dcd34057d987ec1f8ca72233ba0495a59affb67 /protocols/JabberG/src/jabber_caps.cpp | |
parent | 662c4b333d83c70ae05fbcea2dd685e6a3524983 (diff) |
various minor issues
git-svn-id: http://svn.miranda-ng.org/main/trunk@6059 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_caps.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_caps.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp index 524ece8816..4ab1b65fda 100644 --- a/protocols/JabberG/src/jabber_caps.cpp +++ b/protocols/JabberG/src/jabber_caps.cpp @@ -97,7 +97,7 @@ const JabberFeatCapPair g_JabberFeatCapPairsExt[] = { void CJabberProto::OnIqResultCapsDiscoInfoSI(HXML, CJabberIqInfo* pInfo)
{
JABBER_RESOURCE_STATUS *r = ResourceInfoFromJID(pInfo->GetFrom());
- if ( !r)
+ if (r == NULL)
return;
if (r->szCapsNode == NULL)
@@ -149,11 +149,12 @@ void CJabberProto::OnIqResultCapsDiscoInfo(HXML, CJabberIqInfo* pInfo) if (!featureName)
continue;
- for (int j = 0; g_JabberFeatCapPairs[j].szFeature; j++)
+ for (int j = 0; g_JabberFeatCapPairs[j].szFeature; j++) {
if ( !_tcscmp(g_JabberFeatCapPairs[j].szFeature, featureName)) {
jcbCaps |= g_JabberFeatCapPairs[j].jcbCap;
break;
}
+ }
}
// no version info support and no XEP-0115 support?
|