Add missing ".get(" in modules/resume.py

This commit is contained in:
jesopo 2018-11-08 17:29:20 +00:00
parent 150ad512ad
commit 2b106adc05

View file

@ -31,7 +31,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.numeric.001")
def on_connect(self, event):
new_token = event["server"].connection_params.get("new-token")
new_token = event["server"].connection_params.args.get("new-token")
if new_token:
event["server"].connection_params.args["resume"] = [
event["server"].nickname, new_token]