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)