mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 02:54:05 +01:00
User: Make @register automatically add the account tag
No need for '@nickauth nick add' right after registering anymore.
This commit is contained in:
parent
c23227cdc7
commit
b8aa5aa33e
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user