mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-08 19:22:33 +01:00
Fix for ocid's bug with setUser/newUser.
This commit is contained in:
parent
04a6fb1d4d
commit
7f1b983f1b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user