mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fixed bug #1032403.
This commit is contained in:
parent
217799ad1c
commit
b898142039
@ -302,7 +302,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
if ircdb.isAntiCapability(capability) or \
|
if ircdb.isAntiCapability(capability) or \
|
||||||
ircdb.checkCapability(msg.prefix, capability):
|
ircdb.checkCapability(msg.prefix, capability):
|
||||||
user.addCapability(capability)
|
user.addCapability(capability)
|
||||||
ircdb.users.setUser(id, user)
|
ircdb.users.setUser(user.id, user)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
else:
|
else:
|
||||||
irc.error('You can\'t add capabilities you don\'t have.')
|
irc.error('You can\'t add capabilities you don\'t have.')
|
||||||
|
Loading…
Reference in New Issue
Block a user