also set _account_override when registering
This commit is contained in:
parent
0d13725ab7
commit
090d46720a
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue