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.
This commit is contained in:
parent
853ddf8303
commit
c5d7e1deb9
2
bot.py
2
bot.py
|
@ -32,7 +32,7 @@ class Server(BaseServer):
|
||||||
print(f"connected to {self.isupport.network}")
|
print(f"connected to {self.isupport.network}")
|
||||||
await self.send(build("JOIN", [chan]))
|
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]
|
user = line.source.split('!')[0]
|
||||||
|
|
||||||
if line.params[1].startswith(".matchmake"):
|
if line.params[1].startswith(".matchmake"):
|
||||||
|
|
Loading…
Reference in New Issue