Fixed not to raise some exceptions during testing.

This commit is contained in:
Jeremy Fincher 2004-09-29 18:53:23 +00:00
parent d499628075
commit f8375acdad
1 changed files with 3 additions and 1 deletions

View File

@ -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()