From b46e6e06f8504de7348e6ab1255dec7d0974fa01 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 19 Feb 2021 10:00:12 -0500 Subject: adjust message condition order --- tooter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tooter.py') diff --git a/tooter.py b/tooter.py index 33b57f8..f34209b 100644 --- a/tooter.py +++ b/tooter.py @@ -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: -- cgit 1.4.1