Running '!add games' deletes all state data upon restarting twice #4
A bug causes
matchbot to fail to read its state from the serialised JSON data if it contains a game literally called
games. This leads
matchbot to write
null 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 gamesto the channel which
matchbotis listening in.
Send the command
!listand observe that no data is present, or observe that your chosen JSON data file (specified with the value of the
data-filekey in your
matchbotconfiguration file) contains only the string
Those running instances of
matchbot should immediately take backups of their JSON data file and update to version 1.0.1 of
matchbot as soon as it is available.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?