diff options
author | Madhur Garg <madhurgarg96@gmail.com> | 2019-06-24 10:28:33 +0530 |
---|---|---|
committer | Madhur Garg <madhurgarg96@gmail.com> | 2019-08-22 00:54:25 +0530 |
commit | 448f70a5c699ed6c87ad546f92a07f2680026e4f (patch) | |
tree | 880e93cf3583d36c8db07bb5519ba8a1024810cb | |
parent | 4929c298e555d4fc13e0ffef9caf62e64e452804 (diff) | |
download | poezio-448f70a5c699ed6c87ad546f92a07f2680026e4f.tar.gz poezio-448f70a5c699ed6c87ad546f92a07f2680026e4f.tar.bz2 poezio-448f70a5c699ed6c87ad546f92a07f2680026e4f.tar.xz poezio-448f70a5c699ed6c87ad546f92a07f2680026e4f.zip |
Added check for password in eval_password
-rw-r--r-- | plugins/mam.py | 7 |
1 files changed, 4 insertions, 3 deletions
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) |