should only return a BufferLineMatch when we actually match

This commit is contained in:
jesopo 2019-08-15 13:44:57 +01:00
parent 0e46dc7518
commit 61eeba0cb9

View file

@ -63,7 +63,7 @@ class Buffer(object):
if for_user and not self.server.irc_lower(line.sender
) == for_user:
continue
return BufferLineMatch(line, match.group(0))
return BufferLineMatch(line, match.group(0))
return None
def find_from(self, nickname: str) -> typing.Optional[BufferLine]: