kiwiirc / kiwibnc

Apache License 2.0
44 stars 14 forks source link

Separate state data + state functions #71

Open prawnsalad opened 4 years ago

prawnsalad commented 4 years ago

Importing state data such as connection buffers+user lists is fiddly as we have to re-create class instances for buffers and users based on the imported json. We should separate the data so that a single datastore is in use while we have functions that modify the state, similar to the state handlers on the client.