mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
core: Fix tests of plugins using user id for checking capabilities.
This commit is contained in:
parent
db48d78050
commit
bc7051e515
@ -1046,7 +1046,8 @@ def checkCapability(hostmask, capability, users=users, channels=channels,
|
|||||||
ignoreOwner=False):
|
ignoreOwner=False):
|
||||||
"""Checks that the user specified by name/hostmask has the capability given.
|
"""Checks that the user specified by name/hostmask has the capability given.
|
||||||
"""
|
"""
|
||||||
if world.testing and ('@' not in hostmask or
|
if world.testing and (not isinstance(hostmask, str) or
|
||||||
|
'@' not in hostmask or
|
||||||
'__no_testcap__' not in hostmask.split('@')[1]):
|
'__no_testcap__' not in hostmask.split('@')[1]):
|
||||||
return _x(capability, True)
|
return _x(capability, True)
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user