adjust message condition order

This commit is contained in:
Ben Harris 2021-02-19 10:00:12 -05:00
parent d0ce776572
commit b46e6e06f8
1 changed files with 1 additions and 1 deletions

View File

@ -92,10 +92,10 @@ class Server(BaseServer):
if (
line.command == "PRIVMSG"
and self.has_channel(line.params[0])
and self.has_user(line.hostmask.nickname)
and not line.hostmask is None
and not self.casefold(line.hostmask.nickname) == self.nickname_lower
and not ("batch" in line.tags and line.tags["batch"] == "1")
and self.has_user(line.hostmask.nickname)
):
response = think(line)
if response is not None: