mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
ircdb.py: Use a more concise return statement
This commit is contained in:
parent
ad25afa900
commit
0d4ff7f3dc
@ -1,5 +1,6 @@
|
|||||||
###
|
###
|
||||||
# Copyright (c) 2002-2005, Jeremiah Fincher
|
# Copyright (c) 2002-2005, Jeremiah Fincher
|
||||||
|
# Copyright (c) 2009, James Vega
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -1062,10 +1063,7 @@ def checkCapabilities(hostmask, capabilities, requireAll=False):
|
|||||||
else:
|
else:
|
||||||
if checkCapability(hostmask, capability):
|
if checkCapability(hostmask, capability):
|
||||||
return True
|
return True
|
||||||
if requireAll:
|
return requireAll
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# supybot.capabilities
|
# supybot.capabilities
|
||||||
|
Loading…
Reference in New Issue
Block a user