Commit 972986c8 authored by nanahira's avatar nanahira

use room name instead of title for non-mycard server

parent 7cc59374
...@@ -6,7 +6,7 @@ server = null ...@@ -6,7 +6,7 @@ server = null
room_data = (room)-> room_data = (room)->
id: room.name, id: room.name,
title: room.title, title: room.title || room.name,
user: {username: room.username} user: {username: room.username}
users: ({username: client.name, position: client.pos} for client in room.players), users: ({username: client.name, position: client.pos} for client in room.players),
options: room.get_roomlist_hostinfo(), # Should be updated when MyCard client updates options: room.get_roomlist_hostinfo(), # Should be updated when MyCard client updates
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
var client; var client;
return { return {
id: room.name, id: room.name,
title: room.title, title: room.title || room.name,
user: { user: {
username: room.username username: room.username
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment