Commit 8d9b6d06 authored by Mateusz Biliński's avatar Mateusz Biliński

Fixed issue with not properly discovering PEP support.

parent b6321827
......@@ -771,7 +771,7 @@ def _DiscoverInfoGetCB(self, con, iq_obj):
raise common.xmpp.NodeProcessed
id = unicode(iq_obj.getAttr('id'))
if id[0] == 'Gajim_':
if id[:6] == 'Gajim_':
# We get this request from echo.server
raise common.xmpp.NodeProcessed
......@@ -843,7 +843,7 @@ def _DiscoverInfoCB(self, con, iq_obj):
if not identities: # ejabberd doesn't send identities when we browse online users
#FIXME: see http://www.jabber.ru/bugzilla/show_bug.cgi?id=225
identities = [{'category': 'server', 'type': 'im', 'name': node}]
if id[0] == 'Gajim_':
if id[:6] == 'Gajim_':
if jid == gajim.config.get_per('accounts', self.name, 'hostname'):
if features.__contains__(common.xmpp.NS_GMAILNOTIFY):
gajim.gmail_domains.append(jid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment