summaryrefslogtreecommitdiff
path: root/protocols/JabberG/jabber_util.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-03 18:15:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-03 18:15:52 +0000
commit4641ff7a3a0d6a124c22a5c044bffd04073720fc (patch)
treedd0abb5de957189fc8dd18cd83b3cf97eafe853b /protocols/JabberG/jabber_util.cpp
parentad4e888349c2d220828c93d2d50635ff23a6fc72 (diff)
shit dropped out
git-svn-id: http://svn.miranda-ng.org/main/trunk@738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/jabber_util.cpp')
-rw-r--r--protocols/JabberG/jabber_util.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/JabberG/jabber_util.cpp b/protocols/JabberG/jabber_util.cpp
index 31c4ead6c7..463612c4e4 100644
--- a/protocols/JabberG/jabber_util.cpp
+++ b/protocols/JabberG/jabber_util.cpp
@@ -1046,6 +1046,15 @@ TCHAR* CJabberProto::GetClientJID( const TCHAR* jid, TCHAR* dest, size_t destLen
dest[ len ] = '\0';
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 ( p ) *p = 0;
+ return dest;
+ }
+
if ( p == NULL ) {
TCHAR* resource = ListGetBestResourceNamePtr( jid );
if ( resource != NULL )