Don't forget to update the file

This commit is contained in:
Rampoina 2022-01-20 20:03:05 +01:00
parent d2f13337b0
commit 6c2eb49ccd
1 changed files with 1 additions and 0 deletions

1
bot.py
View File

@ -102,6 +102,7 @@ class Server(BaseServer):
await self.send(build("PRIVMSG", [chan, "ERROR: user " + user + " is not an admin"]))
if user in fadmins and game in match_players[self.name + '-' + chan]:
del match_players[self.name + '-' + chan][game]
update_file(self.name + '-' + chan)
await self.send(build("PRIVMSG", [chan, "Removed " + game]))
elif line.params[1].startswith(".del"):
user = line.source.split('!')[0]