From 6c54302c5201a65d8e19b99ca7d99d1490bd748f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Wed, 10 Aug 2016 10:41:18 +0300 Subject: [PATCH] roster subscription parameters added --- opt/ahenk/base/messaging/Messenger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opt/ahenk/base/messaging/Messenger.py b/opt/ahenk/base/messaging/Messenger.py index 05bce08..d4eac63 100644 --- a/opt/ahenk/base/messaging/Messenger.py +++ b/opt/ahenk/base/messaging/Messenger.py @@ -26,6 +26,9 @@ class Messenger(ClientXMPP): 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.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