roster subscription parameters added

This commit is contained in:
Volkan Şahin 2016-08-10 10:41:18 +03:00
parent 3650608a19
commit 6c54302c52

View file

@ -26,6 +26,9 @@ class Messenger(ClientXMPP):
ClientXMPP.__init__(self, self.my_jid, self.my_pass) ClientXMPP.__init__(self, self.my_jid, self.my_pass)
self.auto_authorize = True
self.auto_subscribe = True
self.hostname = self.configuration_manager.get('CONNECTION', 'host') self.hostname = self.configuration_manager.get('CONNECTION', 'host')
self.resource_name = self.configuration_manager.get('CONNECTION', 'receiverresource') self.resource_name = self.configuration_manager.get('CONNECTION', 'receiverresource')
self.receiver = self.configuration_manager.get('CONNECTION', 'receiverjid') + '@' + self.configuration_manager.get('CONNECTION', 'servicename') + '/' + self.resource_name self.receiver = self.configuration_manager.get('CONNECTION', 'receiverjid') + '@' + self.configuration_manager.get('CONNECTION', 'servicename') + '/' + self.resource_name