Only search messages from other users in find_from
(src/IRCBuffer.py)
This commit is contained in:
parent
6e4607ea8d
commit
cc8478c50c
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ class Buffer(object):
|
||||||
def find_from(self, nickname: str) -> typing.Optional[BufferLine]:
|
def find_from(self, nickname: str) -> typing.Optional[BufferLine]:
|
||||||
nickname_lower = self.server.irc_lower(nickname)
|
nickname_lower = self.server.irc_lower(nickname)
|
||||||
for line in self.lines:
|
for line in self.lines:
|
||||||
if self.server.irc_lower(line.sender) == nickname_lower:
|
if (not line.from_self
|
||||||
|
and self.server.irc_lower(line.sender) == nickname_lower):
|
||||||
return line
|
return line
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue