about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2021-02-19 09:58:50 -0500
committerBen Harris <ben@tilde.team>2021-02-19 09:58:50 -0500
commit8b5bd04573a4dc649174bf30e6d328c9031d91dc (patch)
treeacf5ac3e08c285c2b18363e7686221c87dea34e2
parentdc27ffe14af0b06f4a253e4ae1d213a67329e332 (diff)
adjust message condition ordering
-rw-r--r--tracer.py2
1 files changed, 1 insertions, 1 deletions
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)