diff --git a/bot.py b/bot.py index a63a0f9..6feaced 100755 --- a/bot.py +++ b/bot.py @@ -32,7 +32,7 @@ class Server(BaseServer): print(f"connected to {self.isupport.network}") await self.send(build("JOIN", [chan])) - elif "PRIVMSG" in line.format() and chan in line.format(): + elif "PRIVMSG" in line.command and chan in line.params[0]: user = line.source.split('!')[0] if line.params[1].startswith(".matchmake"):