diff --git a/src/AdminCommands.py b/src/AdminCommands.py index 181d107e0..6c0f26d39 100755 --- a/src/AdminCommands.py +++ b/src/AdminCommands.py @@ -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: