about summary refs log tree commit diff
path: root/tooter.py
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2021-02-19 10:00:12 -0500
committerBen Harris <ben@tilde.team>2021-02-19 10:00:12 -0500
commitb46e6e06f8504de7348e6ab1255dec7d0974fa01 (patch)
treef6eb86fb6556e146429accd13343e7160076ef04 /tooter.py
parentd0ce7765724959d469921ac89b9992e4880d2b6f (diff)
adjust message condition order
Diffstat (limited to 'tooter.py')
-rw-r--r--tooter.py2
1 files changed, 1 insertions, 1 deletions
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: