Fixed checkCapability to handle anti capabilities during startup

This commit is contained in:
Jeremy Fincher 2003-03-25 23:14:26 +00:00
parent 90687f6d1d
commit 96b03bf6e7
1 changed files with 4 additions and 1 deletions

View File

@ -401,7 +401,10 @@ def checkCapability(hostmask, capability, users=users, channels=channels):
if startup:
# Are we in special startup mode?
return True
if isAntiCapability(capability):
return False
else:
return True
try:
u = users.getUser(hostmask)
except KeyError: # the user isn't in the database.