Running '!add games' deletes all state data upon restarting twice #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A bug causes
matchbot
to fail to read its state from the serialised JSON data if it contains a game literally calledgames
. This leadsmatchbot
to writenull
to the specified JSON file when it next exits, overwriting all the stored data about players and games.Steps to reproduce:
As a user on IRC, send the command
!add games
to the channel whichmatchbot
is listening in.Restart
matchbot
twice.Send the command
!list
and observe that no data is present, or observe that your chosen JSON data file (specified with the value of thedata-file
key in yourmatchbot
configuration file) contains only the stringnull
.Those running instances of
matchbot
should immediately take backups of their JSON data file and update to version 1.0.1 ofmatchbot
as soon as it is available.Resolved in pull request #5.