mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 13:01:06 -05: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…
x
Reference in New Issue
Block a user