Had an addCapability where I should've had a removeCapability.

This commit is contained in:
Jeremy Fincher 2003-09-22 02:14:40 +00:00
parent fd568a7f48
commit 90d1a55f6c

View File

@ -159,7 +159,7 @@ class AdminCommands(privmsgs.CapabilityCheckingPrivmsg):
try:
id = ircdb.users.getUserId(name)
user = ircdb.users.getUser(id)
user.addCapability(capability)
user.removeCapability(capability)
ircdb.users.setUser(id, user)
irc.reply(msg, conf.replySuccess)
except KeyError: