mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Converted to match the new ircdb stuff.
This commit is contained in:
parent
a5199c7275
commit
c232a31f8f
@ -38,8 +38,6 @@ from questions import *
|
||||
|
||||
import ircdb
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
prompt = 'Would you like to add a user?'
|
||||
while yn(prompt) == 'y':
|
||||
@ -50,9 +48,10 @@ if __name__ == '__main__':
|
||||
while yn(prompt) == 'y':
|
||||
capabilities.append(anything('What capability?'))
|
||||
prompt = 'Would you like to give %s another capability?' % name
|
||||
user = ircdb.IrcUser()
|
||||
(id, user) = ircdb.users.newUser()
|
||||
user.name = name
|
||||
user.setPassword(password)
|
||||
for capability in capabilities:
|
||||
user.addCapability(capability)
|
||||
ircdb.users.setUser(name, user)
|
||||
ircdb.users.setUser(id, user)
|
||||
prompt = 'Would you like to add another user?'
|
||||
|
Loading…
Reference in New Issue
Block a user