add a pubsub_supported variable in connection
This commit is contained in:
parent
27ea3d9f14
commit
6ce94752d4
2 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,7 @@ class Connection(ConnectionHandlers):
|
|||
self.blocked_groups = []
|
||||
self.blocked_all = False
|
||||
self.music_track_info = 0
|
||||
self.pubsub_supported = False
|
||||
self.pep_supported = False
|
||||
self.mood = {}
|
||||
self.tune = {}
|
||||
|
|
|
@ -885,6 +885,8 @@ class ConnectionDisco:
|
|||
gajim.interface.roster.music_track_changed(listener,
|
||||
track, self.name)
|
||||
break
|
||||
if features.__contains__(common.xmpp.NS_PUBSUB):
|
||||
self.pubsub_supported = True
|
||||
if features.__contains__(common.xmpp.NS_BYTESTREAM):
|
||||
our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name) +\
|
||||
'/' + self.server_resource)
|
||||
|
|
Loading…
Add table
Reference in a new issue