Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/modules/discovery.py
    ... ... @@ -47,6 +47,17 @@ class Discovery(BaseModule):
    47 47
                               ns=nbxmpp.NS_DISCO_ITEMS),
    
    48 48
             ]
    
    49 49
     
    
    50
    +        self._account_info = None
    
    51
    +        self._server_info = None
    
    52
    +
    
    53
    +    @property
    
    54
    +    def account_info(self):
    
    55
    +        return self._account_info
    
    56
    +
    
    57
    +    @property
    
    58
    +    def server_info(self):
    
    59
    +        return self._server_info
    
    60
    +
    
    50 61
         def disco_contact(self, jid, node=None):
    
    51 62
             success_cb = self._con.get_module('Caps').contact_info_received
    
    52 63
             self.disco_info(jid, node, callback=success_cb)
    
    ... ... @@ -99,6 +110,8 @@ class Discovery(BaseModule):
    99 110
     
    
    100 111
             self._log.info('Account info received: %s', result.jid)
    
    101 112
     
    
    113
    +        self._account_info = result
    
    114
    +
    
    102 115
             self._con.get_module('MAM').pass_disco(result)
    
    103 116
             self._con.get_module('PEP').pass_disco(result)
    
    104 117
             self._con.get_module('PubSub').pass_disco(result)
    
    ... ... @@ -122,6 +135,8 @@ class Discovery(BaseModule):
    122 135
     
    
    123 136
             self._log.info('Server info received: %s', result.jid)
    
    124 137
     
    
    138
    +        self._server_info = result
    
    139
    +
    
    125 140
             self._con.get_module('SecLabels').pass_disco(result)
    
    126 141
             self._con.get_module('Blocking').pass_disco(result)
    
    127 142
             self._con.get_module('VCardTemp').pass_disco(result)