Save room state after it's creation

This commit is contained in:
Sergey Matveev 2014-05-18 15:25:11 +04:00
parent 49c1eed2e7
commit 9b2b3baca4

View File

@ -247,6 +247,7 @@ func (daemon *Daemon) HandlerJoin(client *Client, cmd string) {
room_new, room_sink := daemon.RoomRegister(room)
if key != "" {
room_new.key = key
room_new.StateSave()
}
room_sink <- ClientEvent{client, EVENT_NEW, ""}
}