User: Make @register automatically add the account tag

No need for '@nickauth nick add' right after registering anymore.
This commit is contained in:
Valentin Lorentz 2021-06-30 21:27:36 +02:00
parent c23227cdc7
commit b8aa5aa33e
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ class User(callbacks.Plugin):
user.setPassword(password)
if addHostmask:
user.addHostmask(msg.prefix)
account = msg.server_tags.get('account')
if account:
user.addNick(irc.network, account)
ircdb.users.setUser(user)
irc.replySuccess()
register = wrap(register, ['private', 'something', 'something'])