Fix an exception when adding the owner user.

This commit is contained in:
James Vega 2005-01-18 18:51:36 +00:00
parent ec3dba0a52
commit dbcc622e76

View File

@ -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?',