always say we want to receive pep notifications even if server don't support it.

This commit is contained in:
Yann Leboulanger 2008-04-19 22:08:40 +00:00
parent ffbc0c65bc
commit 54608822a3
1 changed files with 6 additions and 7 deletions

View File

@ -776,13 +776,12 @@ class ConnectionDisco:
q.addChild('feature', attrs = {'var': 'sslc2s'}) q.addChild('feature', attrs = {'var': 'sslc2s'})
q.addChild('feature', attrs = {'var': 'stringprep'}) q.addChild('feature', attrs = {'var': 'stringprep'})
q.addChild('feature', attrs = {'var': common.xmpp.NS_PING}) q.addChild('feature', attrs = {'var': common.xmpp.NS_PING})
if self.pep_supported: q.addChild('feature', attrs = {'var': common.xmpp.NS_ACTIVITY})
q.addChild('feature', attrs = {'var': common.xmpp.NS_ACTIVITY}) q.addChild('feature', attrs = {'var': common.xmpp.NS_ACTIVITY + '+notify'})
q.addChild('feature', attrs = {'var': common.xmpp.NS_ACTIVITY + '+notify'}) q.addChild('feature', attrs = {'var': common.xmpp.NS_TUNE})
q.addChild('feature', attrs = {'var': common.xmpp.NS_TUNE}) q.addChild('feature', attrs = {'var': common.xmpp.NS_TUNE + '+notify'})
q.addChild('feature', attrs = {'var': common.xmpp.NS_TUNE + '+notify'}) q.addChild('feature', attrs = {'var': common.xmpp.NS_MOOD})
q.addChild('feature', attrs = {'var': common.xmpp.NS_MOOD}) q.addChild('feature', attrs = {'var': common.xmpp.NS_MOOD + '+notify'})
q.addChild('feature', attrs = {'var': common.xmpp.NS_MOOD + '+notify'})
q.addChild('feature', attrs = {'var': common.xmpp.NS_ESESSION_INIT}) q.addChild('feature', attrs = {'var': common.xmpp.NS_ESESSION_INIT})
if (node is None or extension == 'cstates') and gajim.config.get('outgoing_chat_state_notifactions') != 'disabled': if (node is None or extension == 'cstates') and gajim.config.get('outgoing_chat_state_notifactions') != 'disabled':