mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-03 01:39:23 +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
|
import ircdb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
prompt = 'Would you like to add a user?'
|
prompt = 'Would you like to add a user?'
|
||||||
while yn(prompt) == 'y':
|
while yn(prompt) == 'y':
|
||||||
@ -50,9 +48,10 @@ if __name__ == '__main__':
|
|||||||
while yn(prompt) == 'y':
|
while yn(prompt) == 'y':
|
||||||
capabilities.append(anything('What capability?'))
|
capabilities.append(anything('What capability?'))
|
||||||
prompt = 'Would you like to give %s another capability?' % name
|
prompt = 'Would you like to give %s another capability?' % name
|
||||||
user = ircdb.IrcUser()
|
(id, user) = ircdb.users.newUser()
|
||||||
|
user.name = name
|
||||||
user.setPassword(password)
|
user.setPassword(password)
|
||||||
for capability in capabilities:
|
for capability in capabilities:
|
||||||
user.addCapability(capability)
|
user.addCapability(capability)
|
||||||
ircdb.users.setUser(name, user)
|
ircdb.users.setUser(id, user)
|
||||||
prompt = 'Would you like to add another user?'
|
prompt = 'Would you like to add another user?'
|
||||||
|
Loading…
Reference in New Issue
Block a user