From c5d7e1deb9b061e6811ef2e4b1b5d5516c33d127 Mon Sep 17 00:00:00 2001 From: Ultracoolguy Date: Sun, 15 Nov 2020 11:56:01 -0400 Subject: [PATCH] Fix notice bug This bug would make the bot react to anything that had PRIVMSG, the channel, and a command; even if it actually wasn't a PRIVMSG. --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"):