Commit 76928871 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 947de68d
...@@ -152,7 +152,7 @@ class Room ...@@ -152,7 +152,7 @@ class Room
Room.all.push this Room.all.push this
@hostinfo ||= @hostinfo ||=
lflist: (list)-> !list.tcg and list.date.isBefore() lflist: _.findIndex settings.lflist, (list)-> !list.tcg and list.date.isBefore()
rule: if settings.modules.enable_TCG_as_default then 2 else 0 rule: if settings.modules.enable_TCG_as_default then 2 else 0
mode: 0 mode: 0
enable_priority: false enable_priority: false
......
...@@ -204,9 +204,9 @@ ...@@ -204,9 +204,9 @@
this.welcome = ''; this.welcome = '';
Room.all.push(this); Room.all.push(this);
this.hostinfo || (this.hostinfo = { this.hostinfo || (this.hostinfo = {
lflist: function(list) { lflist: _.findIndex(settings.lflist, function(list) {
return !list.tcg && list.date.isBefore(); return !list.tcg && list.date.isBefore();
}, }),
rule: settings.modules.enable_TCG_as_default ? 2 : 0, rule: settings.modules.enable_TCG_as_default ? 2 : 0,
mode: 0, mode: 0,
enable_priority: false, enable_priority: false,
......
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