aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-08-15 13:44:57 +0100
committerGravatar jesopo2019-08-15 13:45:04 +0100
commit61eeba0cb942cda587c8ee710ba64d232ea51402 (patch)
treed21d9b26792810377cd27dd4f4291bc0213aaa3a
parentUpdate CHANGELOG.md (diff)
signature
should only return a BufferLineMatch when we actually match
-rw-r--r--src/IRCBuffer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IRCBuffer.py b/src/IRCBuffer.py
index 7f309f4d..9977a6ae 100644
--- a/src/IRCBuffer.py
+++ b/src/IRCBuffer.py
@@ -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]: