permissions._identified takes server, user and nickname

This commit is contained in:
jesopo 2018-09-19 01:19:04 +01:00
parent 7331443631
commit 702b6a4dd3

View file

@ -107,7 +107,8 @@ class Module(object):
password = event["args_split"][0] password = event["args_split"][0]
hash, salt = self._make_hash(password) hash, salt = self._make_hash(password)
event["user"].set_setting("authentication", [hash, salt]) 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") event["stdout"].write("Nickname registered successfully")
else: else:
event["stderr"].write("This nickname is already registered") event["stderr"].write("This nickname is already registered")