about summary refs log tree commit diff
diff options
context:
space:
mode:
-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: