mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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):
|
||||
"""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)
|
||||
try:
|
||||
u = users.getUser(hostmask)
|
||||
|
Loading…
Reference in New Issue
Block a user