aboutsummaryrefslogtreecommitdiff
path: root/modules/resume.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-09 12:23:37 +0000
committerGravatar jesopo2019-02-09 12:23:37 +0000
commitfeffb2325bcd3e0d27435c1c0a86f47c0293c4d6 (patch)
treef7f39c8f19a31ab1edd07d85b838bd5a94b0afee /modules/resume.py
parentForgot to import EventManager (title.py, youtube.py) (diff)
signature
"resume" -> "resume-token", "new-token" -> "new-resume-token", typo that was
causing resume token to be deleted as soon as it was set (resume.py)
Diffstat (limited to 'modules/resume.py')
-rw-r--r--modules/resume.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/resume.py b/modules/resume.py
index 0f074642..61ceb22d 100644
--- a/modules/resume.py
+++ b/modules/resume.py
@@ -31,9 +31,9 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.numeric.001")
def on_connect(self, event):
- new_token = event["server"].connection_params.args.get("new-token",
- None)
+ new_token = event["server"].connection_params.args.get(
+ "new-resume-token", None)
if new_token:
event["server"].connection_params.args["resume"] = [
event["server"].nickname, new_token]
- del event["server"].connection_params.args["resume"]
+ del event["server"].connection_params.args["new-resume-token"]