mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Had an addCapability where I should've had a removeCapability.
This commit is contained in:
parent
fd568a7f48
commit
90d1a55f6c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user