Fix bug #1054645, using old-style ircdb.{set,new}User

This commit is contained in:
James Vega 2004-10-26 15:08:53 +00:00
parent e63d93d48f
commit 3da0af997d
1 changed files with 2 additions and 2 deletions

View File

@ -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