permissions._identified takes server, user and nickname
This commit is contained in:
parent
7331443631
commit
702b6a4dd3
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue