From 702b6a4dd3626aabd1eeb87bf7362573f0b965e2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Sep 2018 01:19:04 +0100 Subject: [PATCH] permissions._identified takes server, user and nickname --- modules/permissions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/permissions.py b/modules/permissions.py index 4d65287d..9b2be302 100644 --- a/modules/permissions.py +++ b/modules/permissions.py @@ -107,7 +107,8 @@ class Module(object): password = event["args_split"][0] hash, salt = self._make_hash(password) event["user"].set_setting("authentication", [hash, salt]) - self._identified(event["user"], event["user"].nickname) + self._identified(event["server"], event["user"], + event["user"].nickname) event["stdout"].write("Nickname registered successfully") else: event["stderr"].write("This nickname is already registered")