mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-29 19:06:49 +01:00
Fixed not to raise some exceptions during testing.
This commit is contained in:
parent
d499628075
commit
f8375acdad
@ -412,9 +412,11 @@ class IrcChannel(object):
|
|||||||
|
|
||||||
def checkIgnored(self, hostmask):
|
def checkIgnored(self, hostmask):
|
||||||
"""Checks whether a given hostmask is to be ignored by the channel."""
|
"""Checks whether a given hostmask is to be ignored by the channel."""
|
||||||
assert ircutils.isUserHostmask(hostmask)
|
|
||||||
if self.lobotomized:
|
if self.lobotomized:
|
||||||
return True
|
return True
|
||||||
|
if world.testing:
|
||||||
|
return False
|
||||||
|
assert ircutils.isUserHostmask(hostmask)
|
||||||
if self.checkBan(hostmask):
|
if self.checkBan(hostmask):
|
||||||
return True
|
return True
|
||||||
now = time.time()
|
now = time.time()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user