From 448f70a5c699ed6c87ad546f92a07f2680026e4f Mon Sep 17 00:00:00 2001 From: Madhur Garg Date: Mon, 24 Jun 2019 10:28:33 +0530 Subject: Added check for password in eval_password --- plugins/mam.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/mam.py b/plugins/mam.py index 4a9ef44e..db120fff 100644 --- a/plugins/mam.py +++ b/plugins/mam.py @@ -41,6 +41,9 @@ class Plugin(BasePlugin): tab = self.api.current_tab() jid = config.get('jid') password = config.get('password') + eval_password = config.get('eval_password') + if not password: + password = eval_password remote_jid = tab.jid end = datetime.now() end = datetime.strftime(end, '%Y-%m-%dT%H:%M:%SZ') @@ -64,6 +67,4 @@ class Plugin(BasePlugin): except ValueError: pass - xmpp = MAM(jid, password, remote_jid, start, end, tab) - xmpp.register_plugin('xep_0313') - xmpp.connect() + MAM(jid, password, remote_jid, start, end, tab) -- cgit v1.2.3