mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
core: Fix tests using invalid hostmask.
This commit is contained in:
parent
29b9e080ee
commit
7edbb7b6c3
@ -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 '__no_testcap__' not in hostmask.split('@')[1]:
|
if world.testing and ('@' not in hostmask or
|
||||||
|
'__no_testcap__' not in hostmask.split('@')[1]):
|
||||||
return _x(capability, True)
|
return _x(capability, True)
|
||||||
try:
|
try:
|
||||||
u = users.getUser(hostmask)
|
u = users.getUser(hostmask)
|
||||||
|
Loading…
Reference in New Issue
Block a user