Fixed removecapability bug.

This commit is contained in:
Jeremy Fincher 2004-02-11 06:59:44 +00:00
parent 5d3a3437db
commit f5d3b4ba2d

View File

@ -297,7 +297,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
"""
(name, capability) = privmsgs.getArgs(args, 2)
if ircdb.checkCapability(msg.prefix, capability) or \
'!' in capability:
ircdb.isAntiCapability(capability):
try:
id = ircdb.users.getUserId(name)
user = ircdb.users.getUser(id)