Added check for password in eval_password

This commit is contained in:
Madhur Garg 2019-06-24 10:28:33 +05:30
parent 4929c298e5
commit 448f70a5c6

View file

@ -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)