Fix for ocid's bug with setUser/newUser.

This commit is contained in:
Jeremy Fincher 2004-10-22 17:01:54 +00:00
parent 04a6fb1d4d
commit 7f1b983f1b

View File

@ -124,12 +124,12 @@ def main():
else:
capabilities = options.capabilities
(id, user) = ircdb.users.newUser()
user = ircdb.users.newUser()
user.name = name
user.setPassword(password, hashed=hashed)
for capability in capabilities:
user.addCapability(capability)
ircdb.users.setUser(id, user)
ircdb.users.setUser(user)
ircdb.users.flush()
#os.system('cat %s' % filename) # Was this here just for debugging?
ircdb.users.close()