mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-30 15:31:09 -05:00
Fix bug #1054645, using old-style ircdb.{set,new}User
This commit is contained in:
parent
e63d93d48f
commit
3da0af997d
@ -479,11 +479,11 @@ def main():
|
|||||||
ircdb.users.setUser(id, u)
|
ircdb.users.setUser(id, u)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
password = getpass('What should the owner\'s password be?')
|
password = getpass('What should the owner\'s password be?')
|
||||||
(id, u) = ircdb.users.newUser()
|
u = ircdb.users.newUser()
|
||||||
u.name = name
|
u.name = name
|
||||||
u.setPassword(password)
|
u.setPassword(password)
|
||||||
u.addCapability('owner')
|
u.addCapability('owner')
|
||||||
ircdb.users.setUser(id, u)
|
ircdb.users.setUser(u)
|
||||||
|
|
||||||
output("""Of course, when you're in an IRC channel you can address the bot
|
output("""Of course, when you're in an IRC channel you can address the bot
|
||||||
by its nick and it will respond, if you give it a valid command (it may or
|
by its nick and it will respond, if you give it a valid command (it may or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user