also set _account_override when registering

This commit is contained in:
jesopo 2019-11-21 16:53:27 +00:00
parent 0d13725ab7
commit 090d46720a

View file

@ -168,8 +168,11 @@ class Module(ModuleManager.BaseModule):
password = event["args"]
hash, salt = self._make_hash(password)
event["user"].set_setting("authentication", [hash, salt])
event["user"]._account_override = event["user"].nickname
self._has_identified(event["server"], event["user"],
event["user"].nickname)
event["stdout"].write("Nickname registered successfully")
else:
event["stderr"].write("This nickname is already registered")