summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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