summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-06-26 01:00:19 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-08-22 00:54:25 +0530
commitba93143e8a4769e82cc55c7954c5dfd51ff8bad8 (patch)
treec9262a80ce63d2d7f61f6e40293af0e841f9f08e
parent448f70a5c699ed6c87ad546f92a07f2680026e4f (diff)
downloadpoezio-ba93143e8a4769e82cc55c7954c5dfd51ff8bad8.tar.gz
poezio-ba93143e8a4769e82cc55c7954c5dfd51ff8bad8.tar.bz2
poezio-ba93143e8a4769e82cc55c7954c5dfd51ff8bad8.tar.xz
poezio-ba93143e8a4769e82cc55c7954c5dfd51ff8bad8.zip
Removed extra jid and password fields
-rw-r--r--plugins/mam.py8
-rw-r--r--poezio/mam.py2
2 files changed, 2 insertions, 8 deletions
diff --git a/plugins/mam.py b/plugins/mam.py
index db120fff..1335bfd0 100644
--- a/plugins/mam.py
+++ b/plugins/mam.py
@@ -14,7 +14,6 @@ import slixmpp
from datetime import datetime
from datetime import timedelta
-from poezio.config import config
from poezio.plugin import BasePlugin
from poezio.decorators import command_args_parser
from poezio import tabs
@@ -39,11 +38,6 @@ class Plugin(BasePlugin):
"""Define mam command"""
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')
@@ -67,4 +61,4 @@ class Plugin(BasePlugin):
except ValueError:
pass
- MAM(jid, password, remote_jid, start, end, tab)
+ MAM(remote_jid, start, end, tab)
diff --git a/poezio/mam.py b/poezio/mam.py
index 6a16c99b..ba669cd2 100644
--- a/poezio/mam.py
+++ b/poezio/mam.py
@@ -39,7 +39,7 @@ class MAM:
A basic client fetching mam archive messages
"""
- def __init__(self, jid, password, remote_jid, start, end, tab):
+ def __init__(self, remote_jid, start, end, tab):
self.remote_jid = remote_jid
self.start_date = start
self.end_date = end