mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Fix an exception when adding the owner user.
This commit is contained in:
parent
ec3dba0a52
commit
dbcc622e76
@ -463,7 +463,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
id = ircdb.users.getUserId(name)
|
id = ircdb.users.getUserId(name)
|
||||||
u = ircdb.users.getUser(id)
|
u = ircdb.users.getUser(id)
|
||||||
if u.checkCapability('owner'):
|
if u._checkCapability('owner'):
|
||||||
output("""That user already exists, and has owner capabilities
|
output("""That user already exists, and has owner capabilities
|
||||||
already. Perhaps you added it before? """)
|
already. Perhaps you added it before? """)
|
||||||
if yn('Do you want to remove its owner capability?',
|
if yn('Do you want to remove its owner capability?',
|
||||||
|
Loading…
Reference in New Issue
Block a user