mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Fixed removecapability bug.
This commit is contained in:
parent
5d3a3437db
commit
f5d3b4ba2d
@ -297,7 +297,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
"""
|
"""
|
||||||
(name, capability) = privmsgs.getArgs(args, 2)
|
(name, capability) = privmsgs.getArgs(args, 2)
|
||||||
if ircdb.checkCapability(msg.prefix, capability) or \
|
if ircdb.checkCapability(msg.prefix, capability) or \
|
||||||
'!' in capability:
|
ircdb.isAntiCapability(capability):
|
||||||
try:
|
try:
|
||||||
id = ircdb.users.getUserId(name)
|
id = ircdb.users.getUserId(name)
|
||||||
user = ircdb.users.getUser(id)
|
user = ircdb.users.getUser(id)
|
||||||
|
Loading…
Reference in New Issue
Block a user