mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +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):
|
||||
"""Checks whether a given hostmask is to be ignored by the channel."""
|
||||
assert ircutils.isUserHostmask(hostmask)
|
||||
if self.lobotomized:
|
||||
return True
|
||||
if world.testing:
|
||||
return False
|
||||
assert ircutils.isUserHostmask(hostmask)
|
||||
if self.checkBan(hostmask):
|
||||
return True
|
||||
now = time.time()
|
||||
|
Loading…
Reference in New Issue
Block a user