mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fixed checkCapability to handle anti capabilities during startup
This commit is contained in:
parent
90687f6d1d
commit
96b03bf6e7
@ -401,7 +401,10 @@ def checkCapability(hostmask, capability, users=users, channels=channels):
|
|||||||
|
|
||||||
if startup:
|
if startup:
|
||||||
# Are we in special startup mode?
|
# Are we in special startup mode?
|
||||||
return True
|
if isAntiCapability(capability):
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
return True
|
||||||
try:
|
try:
|
||||||
u = users.getUser(hostmask)
|
u = users.getUser(hostmask)
|
||||||
except KeyError: # the user isn't in the database.
|
except KeyError: # the user isn't in the database.
|
||||||
|
Loading…
Reference in New Issue
Block a user