From 8b5bd04573a4dc649174bf30e6d328c9031d91dc Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 19 Feb 2021 09:58:50 -0500 Subject: [PATCH] adjust message condition ordering --- tracer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracer.py b/tracer.py index cf93a03..4bf364c 100644 --- a/tracer.py +++ b/tracer.py @@ -158,11 +158,11 @@ 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 not "inspircd.org/bot" in line.tags - and self.has_user(line.hostmask.nickname) ): try: response = think(line)