mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Fix for bug #840908
This commit is contained in:
parent
f8e920ef36
commit
1ef8b604ea
@ -406,13 +406,13 @@ def main():
|
|||||||
already. Perhaps you added it before? """)
|
already. Perhaps you added it before? """)
|
||||||
if yn('Do you want to remove its owner capability?')=='y':
|
if yn('Do you want to remove its owner capability?')=='y':
|
||||||
u.removeCapability('owner')
|
u.removeCapability('owner')
|
||||||
ircdb.setUser(id, u)
|
ircdb.users.setUser(id, u)
|
||||||
else:
|
else:
|
||||||
myPrint("""That user already exists, but doesn't have owner
|
myPrint("""That user already exists, but doesn't have owner
|
||||||
capabilities.""")
|
capabilities.""")
|
||||||
if yn('Do you want to add to it owner capabilities?') == 'y':
|
if yn('Do you want to add to it owner capabilities?') == 'y':
|
||||||
u.addCapability('owner')
|
u.addCapability('owner')
|
||||||
ircdb.setUser(id, u)
|
ircdb.users.setUser(id, u)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
password = something('What should the owner\'s password be?')
|
password = something('What should the owner\'s password be?')
|
||||||
(id, u) = ircdb.users.newUser()
|
(id, u) = ircdb.users.newUser()
|
||||||
|
Loading…
Reference in New Issue
Block a user